Metaverse system

ABSTRACT

Systems and methods are disclosed to inspect an eye includes capturing an eye image using a mobile device camera; extracting features of the eye; applying a deep learning neural network to detect the eye for identification.

INCORPORATION BY REFERENCE

All publications and patent applications mentioned or cited in thisspecification are herein incorporated by reference in their entirety tothe same extent as if each individual publication or patent applicationwas specifically and individually indicated to be incorporated byreference.

COPYRIGHT NOTICE

A portion of the disclosure of this patent document contains materialwhich is subject to copyright protection. The copyright owner has noobjection to the facsimile reproduction by anyone of the patent documentor the patent disclosure, as it appears in the Patent and TrademarkOffice patent file or records, but otherwise reserves all copyrightrights whatsoever.

BACKGROUND

The present system relates to body imaging and diagnosis.

Lasers are extensively in designators, rangefinders and guidancesystems. The military is actively exploring uses of high-poweredmilitary lasers, suppressing the opposition by temporarily blindingsniper positions, pointing and directing fire to specific targets,distraction devices, psychological warfare to dazzle and confuse theenemy are just some of the ways military lasers are used. Class IVlasers are producing over 500 mW of output and are slowly becoming partof the military arsenals to provide non-lethal engagements in sensitiveareas of operations. Anti-eye laser weapons are being developed whichwould cause new types of combat casualty which have not yet beenextensively experienced, but which will require accurate diagnosis toensure effective medical solutions. Even laser pointers can causedamage.

SUMMARY

In one aspect, systems and methods are disclosed to inspect an eyeincludes capturing an eye image using a mobile device camera; extractingfeatures of the eye; applying a deep learning neural network to detectthe eye for identification.

In implementations, described herein are methods and apparatuses (deviceand methods) to help guide a subject in taking an image of a body region(e.g., fundus of eyes, or nose, ear openings, among others), as well asmethod and apparatuses for identifying the body region from one or moreimages, and methods of identifying similar images from a large databaseof images, and methods and apparatuses for assisting in diagnosis usingthe image(s), and methods of applying deep learning machines to imagesfor medical diagnosis.

In one aspect, a method to inspect an eye includes capturing an eyeimage using a mobile device camera; extracting features of the eye;applying a deep learning neural network to detect potential eye damage;and reporting the potential eye condition.

In another aspect, a method to inspect a nose includes capturing a noseimage using a mobile device camera; extracting features of the nose;applying a deep learning neural network to detect potential nose damage;and using the analysis for eye identification or treatment.

In another aspect, a method to inspect an ear includes capturing an earimage (including membranes such as tympanic membranes) using a mobiledevice camera; extracting features of the ear; applying a deep learningneural network to detect potential ear damage; and reporting thepotential ear damage for treatment.

In another aspect, a method to inspect a stomach includes threading afiber optic cable to the stomach and capturing stomach images using amobile device camera; extracting features of the stomach; applying adeep learning neural network to detect potential stomach damage; andreporting the potential damage for treatment.

In another aspect, a method to inspect includes capturing a throat imageusing a mobile device camera; extracting features of the throat;applying a deep learning neural network to detect potential throatproblems; and reporting the potential throat damage for treatment.

Implementations of the above aspects may include one or more of thefollowing operations: providing an adapter to couple the mobile deviceto the eye; positioning one or more light emitters or light pipes tocarry light from the mobile device in an adapter; capturing stereoimages of the eye; applying a conditional GAN to learn image pattern;generating features and applying the features to detect similar eyeconditions; retrieving treatment or diagnosis information from thedetected similar eye conditions; generating historical feature vectorsfrom one or more eye examinations of a patient, training the deeplearning neural network with the historical feature vectors along witheye images, and applying the trained deep learning neural network todiagnose the eye; detecting laser damage on the eye using the deeplearning network; providing a similarity search for the eye image;displaying from a database eye images similar to the eye image capturedby the mobile device camera. The mobile device camera can be an opticalzoom lens. The adapter can include additional multispectral sensors tosupplement the smart phone cameras. The operation may include one ormore of the following: controlling the optical zoom lens to focus on theposterior of the eye; and may include having neural network assist infocusing on structures on the posterior of the eye; providing backgroundlighting for imaging cataract in the eye with retroillumination;determining intraocular pressure (IOP) with the deep learning neuralnetwork; calibrating the IOP with a tonometer; imaging a posterior ofthe eye with solid state lighting units and light conditioning optics;emitting light with narrow spectral bandwidth, broad spectral bandwidth,visible spectrum, or invisible spectrum; placing light sources andsensors in an adapter positioned between the mobile device camera andthe eye. The adapter may support two or more cameras in the mobiledevice to image the eye.

Advantages may include one or more of the following. For laser injuries,the clinical decision support tool to detect retinal injury will enabledecisions to be made at the Role 3 level and allow physicians todetermine the best treatment plan. The development of accurate and smartocular diagnostic technology will expand the capability of clinicians todiagnose and treat ocular injuries induced by laser exposure at thepoint-of-injury as well as point-of-care. The technology will provideimproved field-care capabilities, reduce recovery time of injuredpeople, and help minimize complications of wound healing after trauma orsurgery. This test if developed on a mobile device would be a valuabletool in the hands of the users for quick analysis if in doubt, and alsoto eye care providers worldwide to assist in the evaluation of laserinduced retinal injuries. End-users receive appropriate care and willreturn to duty more quickly. Quality of care will be improved forsoldiers who suffer laser-induced retinal injury that may not bedetected immediately after exposure without a rapid portable diagnostictool. For commercial users who experience laser pointer issues, thesystem also enables quick and thorough diagnostics.

BRIEF DESCRIPTION OF THE DRAWINGS

FIGS. 1A-1C show exemplary high level processes to analyze eyes.

FIG. 2A shows exemplary deep learning systems for eye structurerecognition.

FIGS. 2B-2J show alternative exemplary deep learning systems for eyestructure recognition.

FIGS. 3A-3B show exemplary adapters for use with smart phones to detecteye structures.

FIGS. 3C-3D show exemplary lighting arrangements for single and dualcamera capture systems.

FIG. 4 shows a non-invasive pressure sensing system with deep learningmachines.

DETAILED DESCRIPTION

FIG. 1A shows an exemplary high level process to analyze eye structures,possibly eyes damaged such as laser damaged eyes, among others. In oneembodiment for analyzing eyes, the process includes receiving an imagedataset, and performing preprocessing for blood vesselsegmentation/detection, connected component analysis, and blob analysis,and ROI detection. The features extracted after the pre-processing areprovided to a deep learning network such as a conditional GAN forlearning, and the trained network is applied in the field using a smartphone and an inexpensive camera adapter for fundus image capture, asdetailed in FIGS. 3A-3B, for example.

Initially the system is trained using data captured by the mobile deviceor by conventional eye imaging systems. For example, the training datacontains a large number of fundus images with a high resolution taken bydifferent levels of fundus cameras and labeled with right and left eyes.The fundus images can be captured by different fundus cameras withdifferent conditions and quality levels. Some of them were treated asnormal images, but few of them had some noise in the form of dots,circles, triangles, or squares. In these conditions, some images areable to overturn. Noisy images can also be considered as out of focused,blurry, under-exposed, and over-exposed images. The noisy data is usefulto avoid overtraining the neural networks.

Preprocessing is helpful to figure out and differentiate between actuallesions or features of laser injury from the noisy data. Therefore,before feature extraction, it can be necessary to perform apreprocessing operation on the raw pavement digital images. In theproposed computer aided diagnosis system, one purpose of preprocessingis to identify the blood vessels in the form of microaneurysms (MAs).During the preprocessing phase, algorithmic techniques are performedincluding the grayscale conversion technique to demonstrate bettercontrast, while the shade correction technique is performed to estimatethe image, then subtracts it from the existing image. In the next phase,vessel segmentation is applied based on GMM. The fundus images can beused to extract the information from the colored image to the backgroundextracted vision. Image processing features can accentuate thefollowing: 1) Image quality quantification: image quality verification;imaging artifact detection; iatrogenic lesion detection (laser scars,etc.); 2 Location and segmentation of retinal structures: retinalvessels; vessel diameter; artery and vein classification; vesselocclusion detection; fovea optic disc cup and rim; cupping; and 3)Segmentation of abnormalities: blood vessel related abnormalitieshemorrhages; microaneurysms; neovascularizations; nerve fiber infarcts(cottonwool spots); pigment epithelium related abnormalities drusen;hyper and hypopigmentation, choroid related abnormalities nevus andmelanoma detection; and uveitis related choroidal lesions. Thebackground image contains the most discriminant form of the image. Toachieve the most discriminant information, the adaptive learning rate(ALR) can provide high performance in the region of interest (ROI).

Before applying the feature extraction, blood vessel extraction can beperformed with the association of ROI localization. In this phase, bloodvessel segmentation can be applied to extract the ROI in the images. Forthis purpose, there are many techniques that can be applied includingROI based segmentation, edge-based segmentation, fuzzy models, andneural networks. A Gaussian mixture technique is used for vesselsegmentation where Gaussian sorting is used to obtain the backgroundsubtraction approach. A hybrid approach can use the Gaussian mixturemodel (GMM) based on an adaptive learning rate (ALR) to obtain betterregion detection results. The Gaussian mixture g(x) with j componentscan be used for the ROI for calculation and ALR can be defined to updatethe μj repeatedly with the use of the probability constraint to identifywhether a pixel can be an element of the jth Gaussian distribution ornot. Candidates for feature detection include template matching, kernelconvolution, detector correlation. Pixel feature classification is amachine learning technique that assigns one or more classes to thepixels in an image. Pixel classification uses multiple pixel features:numeric properties of a pixel and its surroundings. Pixel featureclassification is typically performed using a supervised approach, butwe will test unsupervised learning networks. N-dimensional multifeaturevectors are utilized including pixel contrast with the surroundingregion, its proximity to an edge, and similarity. Two distinct stagesare required for a supervised learning/classification algorithm tofunction: 1) a training stage, in which the algorithm “statisticallylearns” to correctly classify pixels from known classifications, and 2)a testing or classification stage in which the algorithm classifiespreviously unseen images. For proper assessment of supervisedclassification method functionality, training data and performancetesting data sets must be completely disjoint. The n-dimensionalmultifeature vectors are calculated for each pixel, frequently utilizinglocal convolutions with multiple Gaussian derivative, Gabor, or otherwavelet kernels. The image is thus transformed into an n-dimensionalfeature space and pixels are classified according to their position infeature space. The resulting hard (categorical) or soft (probabilistic)classification is then used to either assign labels to each pixel (forexample vessel or nonvessel in the case of hard classification), or toconstruct class-specific likelihood maps (e.g., a vesselness map forsoft classification). For example, an image Ii(x, y) can be transformedinto the Gaussian derivative space Ii(x, y, σk) by convolution withGaussian derivative kernels Ii(x,y,σk)=I0(x,y)★Gαn(σk) where ★represents convolution, σk∈[0, ∞) is the relative scale, and G is theGaussian derivative kernel of order n∈{0, 1, 2} with orientation α∈[0, .. . , 2π]. The number of potential features in the multifeature vectorthat can be associated with each pixel is essentially infinite. One ormore subsets of this infinite set can be considered optimal forclassifying the image according to some reference standard. Hundreds offeatures for a pixel can be calculated in the training stage to cast aswide a net as possible, with algorithmic feature selection steps used todetermine the most distinguishing set of features. Extensions of thisapproach include different approaches to subsequently classify groups ofneighboring pixels by utilizing group properties in some manner, forexample cluster feature classification, where the size, shape andaverage intensity of the cluster may be used.

Because retinal vessel diameter and especially the relative diameters ofarteries and veins are known to signal the risk of systemic diseasesincluding stroke, accurate determination of retinal vessel diameters, aswell as differentiation of veins and arteries have become moreimportant, several semi-automated and automated approaches can beapplied. Other operations include separation of arteries and veins,detection of small vessels with diameters of less than a pixel, andanalysis of the complete vessel trees using graphs. The detection oflesions can use the following. A transform is used for detectingcandidate lesions, after which a mathematical morphology template isutilized to characterize the candidates. This approach or a modificationthereof is in use in many algorithms for detecting laser damage to thefundus. Preprocessing steps, such as shade-correction and matched filterpost-processing to this basic framework, can improve performance.Algorithms of this kind function by detecting candidate microaneurysmsof various shapes, based on their response to specific image filters. Asupervised classifier can be developed to separate the validmicroaneurysms from spurious or false responses. The top-hat algorithmis modified to red-free fundus photographs, and also by broadening thecandidate detection transform to a multifilter filter-bank approach. Thefilter responses are used to identify pixel candidates using aclassification scheme. Mathematical morphology and additionalclassification steps are applied to these candidates to decide whetherthey indeed represent microaneurysms and hemorrhages. A similar approachcan be also successful in detecting other types of lesions, includingexudates or cotton-wool spots, as well as drusen in AMD. Once theappropriate feature sets are determined, the deep learning architecturecan be done.

Following the enhancement and augmentation processes, algorithms areapplied to identify retinal abnormalities associated with laser damage.Retinal laser lesions that cause serious visual problems are readilyapparent ophthalmoscopically and angiographically and the deep learningsystem can identify those cases with near perfect score. For ambiguouscases, we analyze laser-tissue interactions and the characteristics ofunambiguous retinal laser injuries provide key features to facilitatedifficult diagnoses by human professionals.

In FIG. 1B, the images and features/metadata are stored in an imagedatabase. For case analysis, a new image is provided, andpreprocessing/feature extraction are done. A neural network such as aGAN network determines images that are similar, and similar images areretrieved for research, ordered from least similar to most similar bythe neural network. Based on the most similar image, the doctor canretrieve historical treatment information from the most relevant casesto give the doctor precedential treatment data.

In FIG. 1C, during examination, a doctor uses a smartphone to capturethe fundus image of the patient. Feature extraction is done on theimages as detailed herein. In parallel, clinical information such assex, age, temperature, medical history, work history, among others, areprovided to a feature extraction. As the data is text, the featureextraction can be done by extracting feature windows around a particularword of interest. The description can be vectorized into a sparsetwo-dimensional matrix suitable for feeding into a classifier. Featurehashing, where instead of building a hash table of the featuresencountered in training, as the vectorizers do, instances ofFeatureHasher apply a hash function to the features to determine theircolumn index in sample matrices directly. Since the hash function mightcause collisions between (unrelated) features, a signed hash function isused and the sign of the hash value determines the sign of the valuestored in the output matrix for a feature. This way, collisions arelikely to cancel out rather than accumulate error, and the expected meanof any output feature's value is zero.

In addition, prior examination data can be featurized. At the time of agiven exam, relevant information for predicting the diagnosis orprognosis may come not only from the current exam, but also from theresults of past exams. The system combines information from the currentand past exams when making a prediction of diagnosis or prognosis. Ifall patients received regular exams, for example, annually, it would bepossible to simply generate one feature vector for the current exam,another for the exam from 1 year ago, another for the exam from 2 yearsago, etc. Those feature vectors could then be combined via simpleconcatenation (possibly followed by dimensionality reduction) using thesame procedure described herein to combine features within a single examto form a combined feature vector. However, in general, patients may notbe expected to all have had regular past exams on the same schedule. Forexample, patient A may have had annual exams, patient B may have hadexams every other year, and patient C may have only had exams duringperiods of illness, which occurred at irregular intervals. Therefore,there is a need for a consistent method of converting information frompast exams into a feature vector in a way that does not depend on thefrequency or interval between past exams. One possible method forcombining information from past exams is to combine features from pastexams via a weighted average that takes into account the time from thecurrent exam, with more recent exams weighted higher. For example, alinear weighting function could be used which linearly runs from 0 atbirth to 1 at the present time. For an example patient of age 10 who hadexams at ages 3 months, 9 months, and 6 years, each feature would beaveraged together across exams (excluding the present exam), withweights of 0.025, 0.075 and 0.6. Weighting functions other than linearcould be used (e.g., logarithmic, power law, etc.) and weights couldalso be normalized to add up to 1. Features from the current exam wouldalso be included separately in the feature vector, concatenated togetherwith the weighted features from past exams. Alternatively, one couldinclude the current exam's features in the weighted feature vector frompast exams, instead of including it separately. The generated featurevectors are then provided to a deep learning system.

One embodiment uses a conditional-GAN (cGAN) as a deep learning machine.As shown in FIG. 2A, the cGAN consists of two major parts: generator Gand discriminator D. The task of generator is to produce an imageindistinguishable from a real image and “fool” the discriminator. Thetask of the discriminator is to distinguish between real image and fakeimage from the generator, given the reference input image.

The objective of a conditional-GAN is composed of two parts: adversarialloss and LI loss. The adversarial loss can be:

_(cGAN)(G, D)=E_(x,y)|log D(x,y)|+E_(x)|log(1−D(X, g(X))| where L1distance is added to generated image. L1 distance is preferred over L2distance as it produces images with less blurring. Thus our fullobjective for the minimax game is:

$\left( {G^{*},D^{*}} \right) = {\arg\min\limits_{G}{\max\limits_{D}\left( {{\mathcal{L}_{cGAN}\left( {G,D} \right)} + {{\lambda\mathcal{L}}_{L1}(G)}} \right)}}$

The ResNet-50 network by He et al. can be used as the generator, whilethe discriminator can be a convolutional “PatchGAN” classifier witharchitecture similar to the classifier in pix2pix as our discriminator.

In addition to cGAN, other neural networks can be used. FIGS. 2B-2J showexemplary alternatives, including:

1. AlexNet—AlexNet is the first deep architecture which can beintroduced by one of the pioneers in deep learning—Geoffrey Hinton andhis colleagues. It is a simple yet powerful network architecture, whichhelped pave the way for groundbreaking research in Deep Learning as itis now.

2. VGG Net—The VGG Network can be introduced by the researchers atVisual Graphics Group at Oxford (hence the name VGG). This network isspecially characterized by its pyramidal shape, where the bottom layerswhich are closer to the image are wide, whereas the top layers are deep.VGG contains subsequent convolutional layers followed by pooling layers.The pooling layers are responsible for making the layers narrower. Intheir paper, they proposed multiple such types of networks, with changein deepness of the architecture.

3. GoogleNet—In this architecture, along with going deeper (it contains22 layers in comparison to VGG which had 19 layers), the Inceptionmodule is used. In a single layer, multiple types of “featureextractors” are present. This indirectly helps the network performbetter, as the network at training itself has many options to choosefrom when solving the task. It can either choose to convolve the input,or to pool it directly. The final architecture contains multiple ofthese inception modules stacked one over the other. Even the training isslightly different in GoogleNet, as most of the topmost layers havetheir own output layer. This nuance helps the model converge faster, asthere is a joint training as well as parallel training for the layersitself.

4. ResNet—ResNet is one of the monster architectures which truly definehow deep a deep learning architecture can be. Residual Networks (ResNetin short) consists of multiple subsequent residual modules, which arethe basic building block of ResNet architecture. ResNet uses of standardSGD instead of a fancy adaptive learning technique. This is done alongwith a reasonable initialization function which keeps the trainingintact; Changes in preprocessing the input, where the input is firstdivided into patches and then feeded into the network. The mainadvantage of ResNet is that hundreds, even thousands of these residuallayers can be used to create a network and then trained. This is a bitdifferent from usual sequential networks, where you see that there isreduced performance upgrades as you increase the number of layers.

5. ResNeXt—ResNeXt is said to be the current state-of-the-art techniquefor object recognition. It builds upon the concepts of inception andresnet to bring about a new and improved architecture.

6. RCNN (Region Based CNN)—Region Based CNN architecture is said to bethe most influential of all the deep learning architectures that havebeen applied to object detection problem. To solve detection problem,what RCNN does is to attempt to draw a bounding box over all the objectspresent in the image, and then recognize what object is in the image.

7. YOLO (You Only Look Once)—YOLO is a real time system built on deeplearning for solving image detection problems. As seen in the belowgiven image, it first divides the image into defined bounding boxes, andthen runs a recognition algorithm in parallel for all of these boxes toidentify which object class do they belong to. After identifying thisclasses, it goes on to merging these boxes intelligently to form anoptimal bounding box around the objects. All of this is done inparallely, so it can run in real time; processing up to 40 images in asecond.

8. SqueezeNet—The squeezeNet architecture is one more powerfularchitecture which is extremely useful in low bandwidth scenarios likemobile platforms. This architecture has occupies only 4.9 MB of space,on the other hand, inception occupies ˜100 MB! This drastic change isbrought up by a specialized structure called the fire module which isgood for mobile phone.

9. SegNet—SegNet is a deep learning architecture applied to solve imagesegmentation problem. It consists of sequence of processing layers(encoders) followed by a corresponding set of decoders for a pixelwiseclassification. Below image summarizes the working of SegNet. One keyfeature of SegNet is that it retains high frequency details in segmentedimage as the pooling indices of encoder network is connected to poolingindices of decoder networks. In short, the information transfer isdirect instead of convolving them. SegNet is one the the best model touse when dealing with image segmentation problems.

Next is a discussion of the mobile device for eye analysis. Preferably,a low cost eye analysis system leverages the components of a smart phoneusing an adapter 10 which operates stand alone, or holds a viewinginstrument 12 in an aligned relationship with an imaging device thatcaptures images of the subject being viewed (ophthalmoscope) and theophthalmological imaging apparatus allows a medical practitioner toeasily view and record images of the retina and the anterior segments ofthe eye, including the optic nerve. Further, the ophthalmologicalimaging apparatus provides the medical practitioner with a complete viewof the entire optic nerve, not just a partial view. Additionally, theophthalmological imaging apparatus provides the medical practitionerwith a full image of a patient's eye. Accordingly, it will beappreciated that the users of the present device can be a range ofmedical practitioners, such as optometrists, doctors, and nurses. Itwill also be appreciated that the preferred embodiment described hereinis exemplary in nature, and as discussed below, the present inventioncan be applied directly above the eye or alternatively through asuitable viewing instrument 12, including any type of a medical scope aswell as other types of scopes used by professionals in other industriesor in education or any viewing instrument used by amateurs for sportsand hobbies.

FIG. 3A-3B show the ophthalmic imaging apparatus embodiment of thepresent invention as it is used in operation with a subject patient. Theophthalmological imaging apparatus allows the mobile imaging device tobe in optical communication with an ophthalmoscope. The term “in opticalcommunication” means that two or more devices perceive the same image.For example, a smart-phone in optical communication with the scope headof an ophthalmoscope is capable of capturing the image as viewed by theophthalmoscope. The ophthalmological imaging apparatus allows a user toview the retina and anterior segment of an eye without the difficulty ofaligning both the user's eye and the patient's eye with theophthalmoscope head. Further, the ophthalmological imaging apparatusprovides for a firm and stable mounting of the mobile imaging device tothe scope head of an ophthalmoscope at a well functioning angle forexamining a patient's eye.

In the embodiment of FIG. 3B, a camera or other image capture device 1is connected to a viewing instrument 12 through an adapter 10. Theadapter 10 has a bracket 14 which holds the imaging device in placewithin a frame 16. The adapter 10 also has a fitting and a brace whichsecure spaced-apart sections on the bracket 14 to differentcorresponding locations on the viewing instrument 12. The image capturedevice could be any mobile communications device which has a camerasystem such as a smart phone, such as an Android or Apple iPhone®,tablet computers and PDAs; digital cameras; and digital camcorders. Theviewing instrument 12 can be an ophthalmoscope or any other type ofscope or viewing instrument. Accordingly, even though the preferredembodiments of the viewing instrument 12 and image capture device 1 arean ophthalmoscope and a smart-phone 110 which may be referred to belowas a scope and a camera, respectively, it will be appreciated that theadapter of the present invention can be applied to and used without anyintermediate viewing instrument and image capture device.

With the adapter secured to the scope, the frame holds the smart-phoneto the bracket so that the camera is positioned in the x, y and z axeswith optimal optics. It will be appreciated that the means for attachingthe smart-phone to the bracket can be any attachment means known tothose skilled in the art, including but not limited to, a pair of armslocated on opposite sides of the bracket's body section for slidableengagement with the smart-phone, a pair of arms located at opposite endsof the bracket for slidable engagement of the smart-phone, a case formedwith and permanently attached to the bracket so that the case houses thesmart-phone, a snap-fitting arrangement wherein a snap-fit is secured tothe bracket, and a slidable engagement wherein the mobile imaging deviceslides into a fitting arrangement with an element located on the firstframe member.

The adapter 10 can be modular with brackets being designed to holdparticular image capture devices. The fitting for the eyepiece sectionof the bracket and the brace for the body section of the bracket can beselected for the particular viewing instrument to which the imagecapture device is to be coupled. For example, an alternative brace couldbe used to secure the body section of the bracket to a telescope. Theframe of the bracket for holding the smart-phone could be the same asdescribed above for the ophthalmoscope. The fitting may have a snap-fitconnector which secures the eyepiece section of the bracket to theparticular type of view port on the telescope. For example, as discussedabove, the snap-fit connector could attach a threaded screw mount to thebracket. Also, the distal end of the brace may have a different type ofattachment structure, such as a tube clamp 194 (or a hose clamp). Inaddition to the ophthalmoscope and the telescope, the adapter can bemodified so that other types of viewing instruments 12 can be connectedto various types of smart-phones and other cameras. Generally, theadapter can be used for medical imaging devices to facilitate theviewing and capturing of images of a patient's ear, nose, throat orother anatomical feature. Accordingly, the present invention can be usedwith any medical viewing instrument, such as an endoscope, an otoscope,a dermatoscope, a laryngoscope, a laparoscope and any other medicalinstrument that is used to view a patient's internal or externalanatomy. Additionally, the adapter of the present invention can befurther modified and used with other viewing instruments that are usedin industry and education or for sports and hobbies, such as thetelescope described above or a microscope, a borescope or even asighting scope, a surveyor scope or binoculars.

With lighting and optics, the smart phone can additionally be used tophotograph the posterior of eye when the proper adjustment for focus ismade. Solid state lighting units include light emitting diodes (LEDs)and the light conditioning optics in the front. The LEDs could eitheremit light with narrow spectral bandwidth and in visible or invisible,like UV or IR, spectrum, or can also emit light in broad spectralbandwidth, like white light to human eyes. The LEDs could be turned onat same time, in different combinations or individually. The imagingoptics in the front of camera comes with the focusing adjustmentcapability to allow high quality imaging at different distances. Theoptics could also employ the optical zooming capability in the smartphone to allow the users to change the magnification of the images forthe desired object at a fixed distance. For example, Huawei P30's 5×optical zoom uses a periscope design where components make a 90-degreeright turn after the lens cover, and the zoom lens components and CMOSsensor are arranged horizontally to increase optics path for zooming.

The system includes controlling the optical zoom lens to focus on aposterior of the eye; providing a neural network trained to focus onstructures on the posterior of the eye; and imaging the posterior of theeye. In one embodiment, the cGAN is used for self-learning on how tofocus multi-focus image fusion. In another implementation, a deeplearning method fuses multi-focus images with a convolutional neuralnetwork (CNN) as a classifier to identify pixels as focused or defocusedpixels. In case of unavailability of labeled data to train networks, themethod adds Gaussian blur in focused images to produce training data. Inanother method, which aims to learn feature extraction, fusion andreconstruction components together to produce a complete unsupervisedend-to-end trainable deep CNN using a Siamese multi-scale featureextraction module to achieve a promising performance where multiscaleconvolutions along with skip connections are used to extract more usefulcommon features from a multi-focus image pair. Structure similarity(SSIM) measure is used as a training loss function and the fused imagesare reconstructed in a multiscale manner to guarantee more accuraterestoration of images.

Illumination can be done by a lightpipe which draws light from thephone's LED and redirects it for the desired illumination, includinguniform illumination, structured light (to obliquely highlight wrinkles,for example). The attachment device 10 could also contain onboard LEDsor other light sources, with or without onboard power. Although thelight sources described herein use LED to describe the light sources inmobile phones and attachments, a variety of light sources may becompatible. Dual source (and higher number) illumination systems on themobile phone can be used. Another embodiment includes distinctlight-directing features over different LEDs (or parts of a multipartLED), which can provide distinct illumination characteristics. Forexample, the system may be configured to control which of the handsetlights is on; one may have a spectral, polarization, intensity, orholographic filter, while another may have a physical lightpipe whichprovides alternative desired illumination, or any combination ofmodification features over the light sources. This provides control overthe illumination design, without the user having to flip a switch, movea filter, or otherwise be involved in modifying the illumination. Forexample, the illumination system includes a polarizer at the distal end(nearest to the sample plane), and another polarizer over the camera ina perpendicular configuration. This is very helpful in reducing glare.Calibration may be important in many applications of the system,especially for longitudinal image capture, and embodiments whereadditional light from the environment may be present. The device 10 caninclude one or more reference features that alone, or in combinationwith the illumination system, can provide a tool for color calibration.These features may be in the field of view of the primary camera, orthey can use another camera or sensor within or working with the device.For example, the device could have an on-board light meter to measureand compensate for environmental light conditions.

Image registration can be used for comparing longitudinal images. Bothsoftware and hardware features may be used to facilitate this imagealignment. For example, a hardware reticle or other spatial referencefeature may be included, which the user can align with a prominentfeature on the surface. The system may provide a semi-transparentoverlay of the previous image, to which the user can align the currentfield of view. Features like these, including magnification,polarization, spectral selection for illumination and recording,integrated calibration, and controlled illumination are all provided bythe methods and apparatuses described herein, in conjunction with amobile phone or other mobile device, or as a stand-alone system.Combined with the display and wireless transmission capabilities of thephone, this is a powerful system for diagnostic imaging. Images can beread locally by software or a person, or transmitted for remotediagnosis. In the case of remote analysis, the response can be sent backto the user along with treatment advice.

The system can capture and analyze serial images to measurephysiological response. Longitudinal (serial) images over a period oftime can be valuable in tracking the results of a therapeuticintervention (or natural change or healing), even before it is visibleto the user or an expert. Changes in color, reduced redness for example,can be hard to detect with the subjective vision of an observer andvarying light conditions. The method includes capturing the necessaryimages or other data, combining with knowledge of the dosage orintensity of the drug or therapy applied, and evaluating changes overtime according to key evaluative factors.

During the process of the posterior imaging, the digital focusingmechanism could automatically look for features in the images and try toadjust the optical focus mechanism to achieve the best focus. Theoverall brightness of the image could be adjusted or set by the usersaccording to their preference. There are two ways to control thebrightness of the image, the sensitivity of image sensor or luminance ofthe lighting. When the quality of the images or the noise level of theimage is a critical measure, the sensitivity of the image sensor isoften set to a fixed level. Then the luminance of the lighting from thesolid state lighting device is adjusted to achieve the desiredbrightness automatically. Certainly, a maximum level of allowableluminance is set in the apparatus in order to prevent it to exceed thelevel allowed by regulations due to concern for phototoxicity to theeye. If the level of light exposure is more important, then the level ofthe luminance from the light source could be fixed or selected by theusers, while the sensitivity of the image sensor is adjustedautomatically in the second approach.

To determine the color temperature of the incident light, which mayprevent proper white balance of the recorded image or video, a smallamount of the illumination source is provided directly into the camerasystem and the processor can measure the temperature of that samplelight source, which would always appear in the same region of therecorded image, and adjust white balance accordingly.

In the embodiment of FIGS. 3A-3B, the adapter 10 is part of a smartphonecasing where the phone is snappably attached to the smartphone casing.In one modular configuration, the smartphone case (or half-case or othercasing interface) contains a battery, image sensor, and light source,and an interface onto which imaging modules can be attached (the “smartcase”). These modules could be passive, working with the components ofthe smart case and the phone to collect data. For example, the smartcase (casing interface) could have a battery and an LED, and differentmodules could be used to tailor the imaging to ear, nose, throat, skin,eye, endoscopic or other imaging (in addition to non-medical imaging).This approach could allow for a more powerful case to work with avariety of simpler, less expensive optical or other sensor attachments,providing a versatile toolkit for mobile image and other datacollection.

In other embodiments, stereo images can be captured. The light emittingdiodes and the light conditioning optics of the lighting units arearranged to project the diverging light with center of their conesconverged at the optical axis of the imaging camera 57. In the FIG. 3C,the object 51, which is an eye, is located at the convergent point oflighting and is seen in the center of the picture 52 and 53 taken fromthe camera 57. The intensity or brightness of the light from thelighting unit 55 and 56 are adjustable, either manually orautomatically, and to be seen with same or different brightness in theimages of camera 57. Two bright spots 60-61 could be seen in the picture52 from the spectacular reflection of light off the cornea. The purposeof such optical lighting arrangement is to allow uniform illumination ofthe object when both lighting unit 55 and 56 are turned on, and toproduce high contrast images when only one lighting unit is turned on.The contrast of the images (through the lighting) could be adjusted bythe ratio of the light intensity from two lighting units 55 and 56. Thedefault setting could be that of identical brightness for 55 and 56,while the brightness is adjustable collectively. The camera 57 isequipped with a focusing sensor which detects the focus status within aspecific area indicated to the users within the live image window. Asmall color block 62 is shown in the picture 52, which indicates thearea of focusing zone. The users could select or change the area offocus by taping the desired area in the window of live images shown thetouch screen of the portable computing device. The change in the colorof the block could indicate if the object is in focus or not. The camera57 has two working modes for focusing: manual and autofocus. If theautofocus mode is chosen, the camera, through its focus sensor andoptics, would automatically focus on the area of object indicated by thefocus area. Because, under the preview of live images, the lowresolution displaying device is often used, the status of precise focushave to be determined by the focus sensor and not by the sharpness ofthe live images. Then the focusing status is indicated in the frame oflive pictures with symbol, for example the color of the focus block oraudible sound. If the manual focus mode is selected, it is often used toimage an object at a predetermined distance. When the optics in thefront of camera 57 is factory calibrated to provide a predetermined(fixed) focusing distance for the camera, the users could then move thecamera 57 (holding the imaging apparatus) back and forth while using thefocus sensor indicator 512 as the guidance. If the focal length of theoptics is also fixed, or a lens with fixed focal length is used, thenthe optical magnification of the imaging system is also fixed in suchcircumstance. With the help of focus sensor, the optics lens with thefixed focusing distance and the fixed optical focus length would enablethe user to take pictures with fixed magnification, which is importantif the geometrical measurement is to be taken later from the capturedimages.

The special optics is used in the front of lighting unit 58 to generatea focused light beam, with its beam waist (narrowest part of the beam orfocus of the beam) located at a predetermined distance from the camera57. For example, when a human eye 51 is located at the predetermineddistance, the light beam from the lighting unit 58 is also focused nearthe area, but at a small distance from the optical axis of the camera57. The picture 53 presents a separate view seen from the camera 57 whenthe eye is photographed. The circle 513 in the center of the picture 53indicates the opening of the iris from an eye. Here, the light beam fromthe lighting unit 58 is focused and projected into the eye from the edgeof the iris opening whose location is indicated by spot 64 in thepicture 53. Such arrangement is very useful in providing a speciallighting condition, called retroillumination, and allows users toobserve cataract in the eye easily.

On other hand, the light from the lighting unit 59 forms a divergentbeam and with its axis almost in parallel with the optical axis of thecamera 57. The divergence of the light beam ensures that the objectwithin the field of view of the camera 57 is well illuminated. Using theclose proximity between the light source 59 and the camera 57, suchlighting arrangement allows users to exam objects in narrow space or inthe closed cavities. When an eye is photographed in close distance withillumination from the lighting unit 59, it creates a “shadowless” imageas shown in the picture 53, where the bright spot 515 represents thespectacular reflection from the cornea. Such lighting condition createdby the unit 59 could also be used as the supplementary “background”lighting for photographing cataract in the eye under theretroillumination. Again, the focus indication block 66 is shown inpicture 53, which could be used to focus precisely onto the cataractseen in the crystalline lens. In another special application, when avisible or an invisible (IR) light emitter is used in the lighting unit,the facial images of a patient taken at distance from the camera 57could be used to diagnoses a medical condition called amblyopia. Thelight from the unit 59 creates a diffused reflection of light from theretina area and then back through the irises of the patients, is oftenseen as “red eye” in the facial images. If the reflections of light fromtwo eyes are not symmetric as appeared in the irises, it indicatespossible eye problem for the patient. Additional potential applicationsfor such imaging system include photographing cavities in the ear,month, and nose of patients.

Mobile devices include sensors such as a gyroscope, accelerometer,ambient light sensor, proximity sensor, noise-cancelling microphone, andothers, which could be used to aid in image analysis and comparison. Forexample, the internal gyroscope and accelerometer readings may be usedas image metadata to aid in orientation normalization and imageregistration. External sensors and hardware features can be added toadapter 10 for image analysis. For example, a dermascope smartphoneattachment may use an integrated test pattern, which can be used by theapparatuses to normalize the white balance, color values, and imageexposure. Uniformity of exposure (or fidelity of the exposure pattern toan illumination design) can also be captured in an image or added usingan additional sensor. For example, an external light meter could becouple with the mobile device using wired or wireless means, or asecondary camera on the device could capture the relevant lighting data.The mobile app could also measure the brightness of the region ofinterest and manually adjust the LED intensity to compensate (with afixed exposure time).

While a single camera phone configuration is detailed above, phones withtwo cameras can be used in order to take the stereoscopic images. Thestereoscopic images have the advantage of displaying depth information,and are better in visualizing the transparent medium, like the cornea.The lighting units consist of same lighting elements of lighting unitbut the shutters for both cameras of the phone can be opened and closedat same time. Together, cameras generate pictures in the similar fashionas two eyes of human being, when they are focused at same object.

FIG. 3D shows the details of the lighting schematic for the same imagingsystem. The photographed object 71 b, an eye for example, is locatednear the convergent point of light beams from unit 75 b and 76 b, aswell as at the convergent point of the optical axes of two camera 77 band 80 b. The convergent angle 74 b, formed by the optical axes of twocameras, could be either fixed or adjustable. In case it is fixed, thedistance between the object 71 b and the cameras are chosen based on thesize of the object in the picture 72 b and 73 b. Depending on theviewing conditions of the stereoscopic display system, the divergentangle 74 b typically could be between 5 to 13 degrees. The image fromcamera 77, which represented as 81 b, and camera 80 b, which isrepresented as 82 b, are combined and shown in one display 73 b. Becauseboth camera 77 b and 80 b are focused at the convergent point of theiroptical axes, if the object, here the eye, is not located exactly at theconvergent point, the image 81 b and 82 b will not overlap to eachother, as shown in picture 73 b. To get proper stereoscopic images, theusers need to move the imaging apparatus back and forth to get the twoimages coincided, as shown in the picture 72 b. In the picture, the twobright spot 83 b and 84 b represent the spectacular reflections of lightfrom lighting unit 75 b and 76 b by cornea of patient 71 b. When theconvergent angle 74 b is fixed, the distance at which the two imagesfrom camera 77 b and 80 b are fully overlapped is also predetermined andfixed. Therefore, the use of dual cameras not only could generate thestereoscopic images for review, but also a precise method to set aconstant distance, from the object to the cameras. As the result, theimages taken at the constant distance also have same opticalmagnification if the focal length of the imaging optics is fixed. Suchfeature is important for many medical applications because thegeometrical measurement could be taken later from the captured images.Even topographic profiles of the photographed objects could becalculated from the stereoscopic image pairs. It is important to pointout that although the focus of the camera 77 b and 80 b could bepre-fixed at the convergent point of optical axes, the camera could alsobe set into auto focus mode during such operation.

FIG. 4 shows a non-invasive pressure sensing system. The phone camerascan register corneal curvature changes. The corneal curvature in humaneyes correlates well with IOP, in which an IOP change of 1 mmHg causes achange of central corneal radius of curvature of approximately 3 μm. Ahigh correlation exists between the IOP variations and the changes inthe corneal curvature measured in the corneoscleral area, where it isbelieved IOP changes induce maximum corneal deformation. As IOPfluctuates synchronically with heart rate, this 24-hour registration ofIOP rhythm can be inspected for ocular pulsation, including systolic anddiastolic peaks and ocular pulsation frequency. The deep learningnetwork discussed above is used to predict IOP pressure based on imagedcorneal curvature as validated by a tonometer.

The images of the curvature can be correlated using a tonometer of FIG.4 . Briefly, the tonometer consists of a pair of coils coaxial with theprobe shaft that are used to propel the lightweight magnetized probetoward the cornea and to sense its movement. Appropriate electroniccomponents allow for the probe movement to be initiated by the solenoidcoil and monitored by the sensing coil. An applied pulse of electricalcurrent induces a magnetic field within the solenoid, causing the probeto be propelled onto the cornea from where it rebounds. Motionparameters of the probe can be determined from movement of the magneticprobe, which generates a voltage in the sensing coil that is readilyrecorded and analyzed. The voltage is proportional to the magnetic fieldinduced, which is proportional to the probe speed. Several motionparameters of the probe can be extracted from the sensing coiloscilloscope record and related to the IOP, such as the time of eyecontact, the velocity of return, and the deceleration time. The inverseof deceleration time (deceleration time-1) parameter is most closelycorrelated to IOP. The probe consists of a magnetized steel wire shaftwith a round plastic tip (1 mm diameter) at its front end. This roundtip minimizes the possibility of corneal damage from probe impact.

It is preferred that these processing functions be incorporated into thesmart-phone's processor. By incorporating these processing functionsinto a general purpose smart-phone, tablet computer or other mobilecommunications device with an integral camera system and computingcapabilities, the cost of the overall system will be less because of theeconomies of scale in using modular elements. Additionally, with ageneral purpose smart-phone, the processing software can be updated asthe computing power and storage capacity of these devices continue toincrease. Updates to the software may include additional processingfunctions and additional analyses of the images, such as patternrecognition evaluations and tools, which cannot be efficiently performedon current smart phones. Yet another benefit of the modular nature ofthe present invention is the increasing resolution and imaging power ofsmart-phones. The optics of the viewing instruments, such asophthalmoscopes, may already be optimized, and being able to swap in newsmart-phones with better computing and imaging capabilities willcontinue to improve the overall system without having to replace thoseelements in the system that are already optimized. This will furtherreduce the overall operating costs of the system over the lifespan ofeach component because the user will be able to replace each componentindividually as it reaches the end of its life rather than replacing theentire system.

According to the ophthalmologic imaging embodiment of the presentinvention, the interface between the smart-phone and the ophthalmoscopeor otoscope (FIG. 3A item 12) includes the data exchange between the twodevices. The exchange of data is preferably used to document and add tothe patient file as well as to process the internal settings of thephone ophthalmoscope, such as the refractive power used to obtain aclear image. As discussed above, with an ophthalmoscope that has settingcontrollers for the image control features, the smart-phone can controlfunctions of the ophthalmoscope such as the refractive power setting,light output level color and size, and may even provide a trigger for anincreased light level for the purpose of flash photography.

With an analog ophthalmoscope, the focal power of the scope's lenssystem can be calibrated so that it causes the focusing lens withinsmart-phone camera (material that changes refraction index as voltage isapplied) to use approximately one-half of its focal power to obtain aclear image of an emetropic human eye (i.e., no refractive error in theeye). This configuration would allow the smart-phone camera toautomatically add or subtract focal power and enable the clear imagingthrough a wide range of refractive errors in the lens of the subject'seye (myope and hyperope) with no additional focusing lenses required inthe adapter. By calculating the focal power required by thesmart-phone's camera system to obtain a clear image, an approximation ofrefractive power of the subject eye can be determined. It will beappreciated that the scope could also be calibrated with thesmart-phone's camera system for several different viewing options, suchas a standard field of view through non-dilated pupil and a wider fieldof view through a dilated pupil. Of course, with the smart-scope, thesmart-phone may send signals to the ophthalmoscope to change therefractive power, and in this case the smart-phone would be able todirectly calculate the refractive power of the subject eye based on themeasured settings from the smart-scope and corresponding optics tablesfor the smart-scope's lens positions.

It will be appreciated that the present invention for the smart phoneophthalmological imaging system provides non-eye specialists with amethod of non-mydriatic or mydriatic fundus photography at an extremelylow cost. More generally, for viewing instruments generally, sincesmart-phones have their own computer processors and displays that can beused to control various functions of the smart-phone, such as thecommunications module and the camera system, one or more specializedcomputer applications running on the smart-phones can serve as thecontrol panel for optimizing the use of the smart-phone with a viewinginstrument which may be an analog scope or a smart-scope.

As indicated above, the smart-phone can be adjusted for a range of scopesettings. For example, with ophthalmoscopes in particular, red filtersmay be used to decrease the percentage of color spectrum received thatis in the red spectrum. This would increase image contrast while imagingthe retina, as it is mostly pigmented red. Also, it is often difficultfor a clinician to obtain a good view of the retina through an undilatedpupil for long periods of time which would typically be required forgood photography. This is partially due to low patient tolerance forbright lights and limited ability to hold the ophthalmoscope perfectlysteady. The latter half of this problem can be mitigated by the abilityof the clinician to look at the live subject images on the smart-phone'sdisplay screen rather than having to press their own eyes against theview port of ophthalmoscopes and fundus cameras. With regard to patienttolerance of light, when the smart-phone is used with a smart-scope, theprocessor could reduce the light intensity while the clinician alignsthe device with the portion of fundus that is to be imaged and thenincreases the intensity when the clinician selects the capture imagecommand. This could allow focusing of the camera lens with betterpatient tolerance. Of course, with auto-focus capabilities in either asmart-scope ophthalmoscope or in the smart-phone, the time to focus theoverall ophthalmologic imaging system could be greatly reduced. Theprocessor can also optimize the use of the particular ophthalmoscopeoptics with the features of the smart-phone. The mobile devicecompensates for the eye condition during usage. For example, wearableAR/VR devices can actuate the lens to enable proper focus of the eyes.The lens can be a liquid lens which are mechanically or electricallycontrolled cells containing optical-grade liquid. When a current orvoltage is applied to a liquid lens cell, the shape of the cell changes.This change occurs within milliseconds and causes the optical power, andtherefore focal length and WD, to shift. The shape of the lens can beadjusted to provide optical correction for reading, among others.Alternatively, MEMS actuators, VCM, piezo motor, or liquid crystal, forexample. A tunable liquid lens can be used, as can a variable focuselastomer liquid lens can be used in the mobile device to providecorrectable vision for the user.

The system can provide education and assistance to users to calm theuser in case of laser exposure. If the eye spots are still visible afterlaser exposure, the user may have retinal damage. Fortunately, thisoften heals within a few days or weeks. The system can provide interfacefor showing example disease progression via images, for example, auser-facing interface for educating users about the expected progressionof a given disease, possibly given an intervention, using examplelongitudinal imaging data from the database. Vision may returncompletely to normal, or the patient may have faint spots noticeableonly under special conditions such as looking at a uniform white wall orblue sky. The system provides an Amsler Grid test to help in findingsmall lesions within 8-10 degrees of the fovea. Given a diseasename—gleaned for an exam using the automated diagnosis procedure—andpossibly an intervention, this interface will show longitudinal imagingfrom a single patient, with images spaced over time. The user will thenhave the ability to visually compare their exam to the exampleprogression to estimate their stage in the disease progression. Thisinterface may also be extended to compare a query image to images withinan example disease progression in order to automatically line up thequery image with the appropriate image in the disease progression. Thiswill visually inform the user of the current stage of their disease.Determination of similarity between the query image and the images inthe example progression would be made via the same similarity metricsusing an ordinal classifier. This interface would not be confined to anygiven example progression for a given disease/intervention, but couldsearch for the closest image in all sets of longitudinal progressiondata associated with the given disease/intervention.

Via methods described herein, it is possible to create a textured 3Dmodel of a patient's eye structures. Alternative methods including usinghigh-resolution CT or MRI images to create the 3D model of the eye maybe used; the model could then be textured using textures from anystandard ophthalmic exam. Such a 3D model could be used for training orto aid in diagnosis of a real patient. Once a 3D model exists, a usercan navigate through the reconstructed eye and view relevant anatomyfrom different angles. This navigation could be performed on any device(e.g., PC, tablet, mobile phone, heads-up display, such as Google Glass,etc.), and is not limited to the device used to record the originalexam. On a PC, navigation could be performed in a manner similar to thatof a 3D modeling program, such as SolidWorks, or a 3D explorationprogram, such as Google Earth. Different combinations of clicking,dragging and mouse wheel scrolling perform functions of view zooming,panning and rotation.

On a mobile device, navigation could be performed in the “Google Earthstyle,” where certain multitouch gestures allow panning, zooming orrotating the view. Alternatively, navigation could make use of thedevice's built-in accelerometer, so that, as the device moves orrotates, those movements can be captured and translated intocorresponding movements of the view within the mobile application,allowing for a “virtual eye exam” using the previously built 3D model.This interface performs similarly to, for example, the Google Sky MapAndroid app (http://www.google.com/mobile/skymap/). The Google Sky Mapapp allows the user to point their mobile device at a portion of the skyand shows constellations and other relevant space phenomena in thedirection that the device is pointing; the device's orientation isdeduced by reading its accelerometer values. In the case of the virtualeye exam, the same principle is used, except that the “virtual space”consists of the textured 3D eye or eye model.

When an individual performs an eye exam for the first time, it may bedifficult for them to determine whether they are performing the examcorrectly. A properly trained real time guidance system that isintegrated with the system helps the user in proper usage through “headsup display”-style cues (e.g., arrows, “locked on” indicator, or othergraphics superimposed on the live video of the in-progress exam) oraudio cues (e.g., a chime, or a voice instructing the user to move theotoscope left, right, into the ear, out of the ear, etc.) to guide theuser during the exam. This would help to ensure that the necessaryanatomy is visualized during the exam and that the exam is conducted inas expedient and safe a manner as possible. In addition to oralternatively, a supervised machine learning classifier can be trainedto detect proper orientation and guide the user. For example, for earstructures, a region of increasing depth is manually segmented in thevideos. The region of increasing depth classifier would then be trainedand operated in an analogous manner to that described above for TMsegmentation.

For example, described herein are methods and devices for detecting alaser injury on eye fundus. In general, the method may include:receiving the image of the subject's fundus; extracting a set of featurevalues for subregions of the image; estimating, for each subregion, aprobability that the subregion is part of a fundus based on an extractedsets of feature values for the subregion; and identifying a fundusregion from the image using the estimated probabilities for thesubregions.

In any of the methods described herein, receiving the image may includereceiving a video frame (e.g., an image taken from a video). In general,extracting may comprise extracting feature values for each of thesubregions in the subset of subregions at a plurality of differentscales. Different scales may mean different magnifications, or differentfiltering levels. For example, a raw image may be processed to provide adifferent scale by filtering (e.g., blurring, sharpening, etc.) and theresulting processed image may provide an additional scale of the image.For example, extracting may comprise extracting, at the plurality ofdifferent scales for each particular subregion within the subset ofsubregions, the set of feature values comprising a plurality of colorspace values for: the particular subregion in the subset of subregions,and for a plurality of subregions immediately adjacent to the particularsubregion. Any of these methods described herein may also includeestimating, for subregions not within the subset of subregions, aprobability that subregions not in the subset of subregions is part of atympanic membrane by interpolating from the probabilities that adjacentsubregions within the subset of subregions are part of the fundus.

Any appropriate features may be extracted. For example, features mayinclude color features (color space, such as RGB, HSL/HSV, CMYK, and labcolor space, e.g., CIELAB). For example, extracting a plurality offeatures for each of the subregions in the subset of subregions maycomprise extracting color space information for each subregion in thesubset of subregions. Color space information may refer to colorinformation for the image from a particular color space, such as CIELAB.Thus, only a portion of the color space information (one or moreintensity, hue, saturation, lightness, etc.) may be used. Features mayinclude statistical mappings or transformations of the raw colorinformation, such as averages, distributions, standard deviations, etc.For example, extracting a plurality of features for each of thesubregions in the subset of subregions may comprise extracting a colorlightness value, a first hue value and a second hue value for eachsubregion in the subset of subregions. Extracting a plurality offeatures for each of the subregions in the subset of subregions maycomprise extracting a color hue value, a color saturation value and acolor brightness value for each subregion in the subset of subregions.

In general, identifying the fundus region may include any appropriateidentification, including visual (e.g., identifying a tympanic membraneregion from the image on a representation of the image bycircling/outlining, highlighting, coloring, etc.), audible, indicatingthat the image includes such a region, or setting one or more registersassociated with an image to indicate that the image includes a fundus,or portion of an eye fundus (e.g., above a threshold minimum amount ofeye fundus region). A separate image including just the extracted eyefundus may be generated.

For example, an apparatus may also include an eye adapter (lens portion)to connected to a mobile device or smart phone and a non-transitorycomputer-readable storage medium storing a set of instructions capableof being executed by a processor, that when executed by the processorcauses the processor to: receive an image of the subject's eye; select asubset of subregions from the image; extract, at a plurality ofdifferent scales, a set of feature values for each of the subregions inthe subset of subregions; estimate, for each individual subregion withinthe subset of subregions, a probability that the individual subregion ispart of an eye fundus based on the extracted sets of feature values forthe individual subregion; and identify, on a representation of theimage, an eye fundus region from the image using the estimatedprobabilities for the subregions within the subset of subregions.

Thus, described herein are non-transitory computer-readable storagemedium storing a set of instructions capable of being executed by aprocessor, that when executed by the processor causes the processor to:receive an image of the subject's eye; select a subset of subregionsfrom the image; extract, at a plurality of different scales, a set offeature values for each of the subregions in the subset of subregions;estimate, for each individual subregion within the subset of subregions,a probability that the individual subregion is part of an eye fundusbased on the extracted sets of feature values for the individualsubregion; and identify, on a representation of the image, an eye fundusregion from the image using the estimated probabilities for thesubregions within the subset of subregions.

Any of the methods and devices for identifying an eye fundus region (orportion of an eye fundus region) described herein may be configured oradapted for use as part of a method or device for displaying, matching,identifying, diagnosing, guiding a subject to acquire and image or, orotherwise examining a image or video including the determination of aneye fundus region.

Also described herein are methods and devices for guiding a subject toassist in taking an image a patient's eye fundus. In general, it may bedifficult for a novice (or an untrained individual, such as a patient,parent or non-specialist) to image the eye fundus, and in particular tocapture a sufficiently detailed image of an eye fundus for use indiagnosing or analysis using the eye fundus. Described herein aremethods and device for aiding in imaging the eye fundus that may beused, in particular, for use with a home or clinical device thatincludes a camera (e.g., speculum, lens/lenses, and video/image capturecapability). Images may be acquired until the method/apparatusindicates, e.g., visually or audibly, that an adequate image has beentaken. The image(s) may then be stored, transmitted, and/or analyzed.For example, stored images may be transmitted to a medical provider forfurther analysis, or to a third-party analysis center.

For example, a method of guiding a subject using an ophthalmicdiagnostic device coupled to a display device to image an eye fundus mayinclude: displaying, on the display device, an image from the camera;detecting at least a portion of an eye fundus from an image of asubject's eye; indicating to the subject when an image of at least aportion of the eye fundus has been taken.

In general, a method of guidance or an apparatus for guiding a subjectto take an image may examine images (digital images) of a patient's eyebeing taken by the user, e.g., operating a camera to determine when aminimum amount of eye fundus is showing (e.g., more than 20%, more than25%, more than 30%, more than 35%, more than 40%, more than 45%, morethan 50%, more than 55%, more than 60%, more than 65%, more than 70%,more than 75%, more than 80%, more than 85%, more than 90%, more than95%, etc.) in the image. This may be done, as mentioned above. Themethod or apparatus may then indicate that an adequate image has beentaken, and/or may automatically start sending, transmitting, and/oranalyzing the image(s).

As mentioned above, detecting at least a portion of the eye fundus fromthe image may comprise: extracting a set of feature values for each of aplurality of subregions from the image; estimating, for each individualsubregion within the plurality of subregions, a probability that theindividual subregion is part of an eye fundus based on the extractedsets of feature values for the individual subregion.

Any of the methods and apparatuses described herein may be performedon/by a mobile device or smart phone, such as a smartphone (iPhone,Android, etc.), pad/tablet (iPad, etc.), laptop, and mobile computingdevice (e.g., Google Glass, iWatch, retina implant, etc.). For example,displaying one or more images on the display device may comprisedisplaying on a mobile device or smart phone. Thus, any of the steps ofthe methods described herein may be performed by the mobile device orsmart phone (e.g., smartphone), including on the display and/orprocessor of the mobile device or smart phone. Some of the steps (or insome variations, all of the steps) may be performed remotely, e.g., by aprocessor to which the mobile device or smart phone is communicating. Ingeneral, as described herein a mobile device or smart phone includes anydevice that is portable, includes a processor and is configured tocommunicate with a network such as the internet and/or a telephonynetwork, including, but not limited to smartphones (iPhone, Android,etc.), pads/tablets (iPad, etc.), laptops, and wearable computingdevices (e.g., Google Glass, iWatch, retina implant, etc.)

In some variation a method or system may alternatively or additionalguide a subject by providing one or more directions, includingdirections on a display screen showing the images, audible cues, textualcues or the like, so that the subject may move the camera device toadjust the view being taken. In addition, the method or system mayindicate when the image is obstructed (e.g., by wax, foreign body, etc.)and/or when the image quality is low (poor lighting, focus/lensingissues, etc.).

A method of guiding a subject using a camera coupled to a display deviceto image an eye fundus may include: displaying, on the display device,an image from the camera; detecting one or more deeper regions in theimage from the camera; indicating to the subject, a direction to orientthe camera based on the detected one or more deeper regions; andindicating to the subject when an image of at least a portion of the eyefundus has been taken.

A method of guiding a subject using a camera coupled to a display deviceto image an eye fundus may include: taking an image of an eye using thecamera; displaying, on the display device, the image; detecting one ormore deeper regions in the image from the camera; indicating if the eyeis occluded; indicating on the display device, a direction to orient thecamera based on the detected one or more deeper regions; and indicatingwhen an image of the eye fundus has been taken.

A method of guiding a subject using a camera coupled to a display deviceto image a patient's eye fundus, the method comprising: displaying, onthe display device, an image of the subject's eye from the camera;detecting one or more deeper regions in the image: correcting for unevenillumination in the image, identifying one or more regions of brightnessbelow a threshold in the image, extracting features for each identifiedregion, and determining if an identified region is deeper in the eyebased on the extracted features; indicating a direction to orient thecamera based on the detected one or more deeper regions; determining ifthe image includes an eye fundus by: extracting a set of feature valuesfrom a plurality of subregions from the image, estimating, for eachsubregion, a probability that the subregion is part of an eye fundusbased on the extracted sets of feature values; and indicating when animage of the eye fundus has been taken.

As mentioned, any of these methods may include detecting at least aportion of an eye fundus from an image of a subject's eye and indicatingto the subject when an image of at least a portion of the eye fundus hasbeen taken. The indicator may be visual, audible, or both. For example,an indicator may be a beep, tone, song, etc., indicating that anadequate image has been taken. In some variations the indicator includesa flash, highlight, signal, text message, or the like, which may bedisplayed on the screen (e.g., of the display device, e.g., smartphonescreen).

Any of these methods and apparatuses may also indicate an occlusion ofan eye from the image, including automatically detecting when the eye isoccluded. Additionally, any of these methods and apparatuses may alsoinclude instructing the subject to straighten the eye. Instructions maybe visual (images, text, etc.) or audible, or both. In general, any ofthese apparatuses and methods may be configured to automatically detectwhen it is helpful or necessary for the subject to reposition and/orview adjustment to straighten the eye. The method of device may includeproviding an indicator when the eye has been straightened sufficiently.Thus, instructing the subject to straighten the eye includesautomatically instructing the subject to straighten the eye.

In some variations, detecting one or more deeper regions comprises:determining a field of view for the image, correcting for unevenillumination in the field of view, identifying from the field of viewone or more regions of brightness below a threshold in the image,extracting features for each identified region, and determining if anidentified region is deeper in the eye based on the extracted features.Alternatively or additionally, detecting one or more deeper regions maycomprise: determining a field of view for the image, converting thefield of view of the image to greyscale, filtering the field of view ofthe image to remove small objects, and dividing the image by an averageillumination value.

Detecting one or more deeper regions may comprises: determining arelative distribution of pixel values from the image from the camera andidentifying regions having the relative distribution of pixel valuesbelow a threshold value. Detecting one or more deeper regions comprisesmay include using a trained model to determine if the one or moreregions are deeper regions in an eye. In some variations, detecting oneor more deeper regions comprises extracting features from one or moreregions of the image that are not as bright as other regions and using atrained model to determine if the one or more regions are deeper regionsin an eye, wherein the extracted features include one or more of: regionarea, region eccentricity, region solidity, mean intensity of theregion, and mean intensity of the region in an illumination-correctedimage.

As mentioned, any of these methods may include determining if the imageincludes an eye fundus. For example, by extracting a set of featurevalues from a plurality of subregions from the image, estimating, foreach subregion, a probability that the subregion is part of an eyefundus based on the extracted sets of feature values.

Also described herein are apparatuses configured to guide a subject tocapture fundus images. For example, a system may include anon-transitory computer-readable storage medium storing a set ofinstructions capable of being executed by a processor, that whenexecuted by the processor, causes the processor to: display an imagefrom a phone camera; detect one or more deeper regions in the image fromthe camera; indicate to a subject a direction to orient the camera basedon the detected one or more deeper regions; and indicate to the subjectwhen an image of the eye fundus has been taken. Any of these systems mayalso include the camera (e.g., lens, speculum, etc.) and display device(e.g., smartphone or other mobile device or smart phone). The system maybe configured to couple to the display device, including coupling to abuilt-in camera on the display device and supplement any lenses on thebuilt-in camera to convert it to a lens to capture medical data from theuser.

In general, also described herein are methods and devices for displayingan eye fundus. These methods may generally be performed on imagescollected and analyzed as described above, though they may beused/performed independently of these.

For example, a method of displaying an image of an eye fundus mayinclude: displaying a first image of a subject's eye fundus; identifyinga plurality of similar eye fundus images from a database of eye fundusimages including images of the same eye fundus taken at different times,based on color and texture values of the first image; concurrentlydisplaying the first image and the plurality of similar eye fundusimages. The method of displaying an image of an eye fundus may furtherinclude: extracting a plurality of image features from a first image ofa subject's eye fundus, wherein the image features include color andtexture data; combining the extracted features into a feature vector forthe first image; identifying a plurality of similar eye fundus imagesfrom a database of eye fundus images by comparing the feature vector forthe first image to feature vectors for images in the database of eyefundus images; displaying (e.g., concurrently) the first image and theplurality of similar eye fundus images and indicating the similarity ofeach of the similar eye fundus images to the first image.

Another method of displaying an image of an eye fundus may include:selecting a region of interest from a first image including an eyefundus; extracting a plurality of image features from the region ofinterest of the first image, wherein the image features include colorand texture data; combining the extracted features into a feature vectorfor the first image; identifying a plurality of similar eye fundusimages from a database of eye fundus images by determining the distancebetween the feature vector for the first image and feature vectors forimages in the database of eye fundus images, and selecting images fromthe database of eye fundus that are closest based on the determineddistance; displaying the first image and the plurality of similar eyefundus images and indicating the similarity of each of the similar eyefundus images to the first image.

Extracting a plurality of image features from the first image mayinclude extracting image features comprising color and texture data fromthe first image and wherein identifying the plurality of similar eyefundus images comprises using the extracted image features to identifythe plurality of similar eye fundus images.

Any of these methods may also include allowing a user to select one ofthe plurality of similar eye fundus images and displaying time courseimages of the selected eye fundus image. In addition or alternatively,any of these methods or apparatuses may be configured to display adiagnosis associated with one or more of the plurality of similar eyefundus images. In general, the methods and apparatuses described hereinmay communicate with a dataset of images (e.g., eye fundus images) thatincludes associated information, which may include diagnosisinformation, associated symptom information (e.g., fever, headache, earpain, etc.). For example, the subject/user may be allowed to select oneof the plurality of similar eye fundus images and displaying time courseimages of the selected eye fundus image.

As mentioned, any of these devices and apparatuses may be configured touse a smartphone or the like. For example, displaying the first imageand the plurality of similar eye fundus images may comprise displayingon a mobile device or smart phone.

Any of the methods for displaying the image of the eye fundus mayinclude reducing the dimensionality of the feature vector to form areduced feature vector and identifying the plurality of similar eyefundus images using the reduced feature vector.

In general, identifying the plurality of similar eye fundus images fromthe database of eye fundus images may comprise determining the distancebetween the feature vector for the first image and feature vectors forimages in the database of eye fundus images, and selecting images fromthe database of eye fundus images that are near.

Any of these methods may also include transforming a color space of afirst image of a subject's eye fundus into a uniform color space (e.g.,CIELAB, etc.). For example, any of these methods may includetransforming the first image into a perceptually uniform color space.

An apparatus for displaying an image of an eye fundus may includenon-transitory computer-readable storage medium storing a set ofinstructions capable of being executed by a processor such as asmartphone, that when executed by the processor (e.g., smartphone),causes it to: display a first image of a subject's eye fundus from acamera; identify a plurality of similar eye fundus images from adatabase of eye fundus images including images of the same eye fundustaken at different times, based on color and texture values of the firstimage; concurrently display the first image and the plurality of similareye fundus images.

Also described herein are methods and apparatuses to assist indiagnosis. For example, described herein are methods of guidingdiagnosis of an eye ailment using an image, the method comprising:extracting a plurality of image features from a first image of asubject's eye fundus, wherein the image features include color andtexture data; combining the extracted features into a feature vector forthe first image; applying the feature vector to a trained classificationmodel to identify a probability of each of a plurality of differentdiseases; indicating the probability of each of a plurality differentdiseases.

A method of guiding diagnosis of an eye ailment using an image of asubject's eye fundus may include: selecting a region of interestcomprising at least a portion of the subject's eye fundus from a firstimage including at least a portion of an eye fundus; extracting aplurality of image features from the region of interest of the firstimage, wherein the image features include data derived from the colorand texture data; combining the extracted features into a feature vectorfor the first image; applying the feature vector to a trainedclassification model to identify a probability of each of a plurality ofdifferent diseases; indicating the probability of each of a pluralitydifferent diseases and displaying an image of an exemplary eye fundusfor each of the plurality of different diseases.

Any of these methods may include reducing the dimensionality of thefeature vector to form a reduced feature vector and applying the featurevector to the trained classification model comprises using the reducedfeature vector.

As mentioned above, any of these methods and apparatuses may beconfigured to work on/with a mobile device or smart phone such as asmartphone. Thus, any of the steps may be performed on the mobile deviceor smart phone. For example, extracting may comprise extracting on amobile device or smart phone.

Any of these methods may include selecting a region of interestincluding at least a portion of the eye fundus.

In some variations, the methods may include transforming the first imageinto a perceptually uniform color space (e.g., CIELAB) before extractingthe image features. In general, extracting image features may includeextracting color data comprising a mean of an image color channel withina region of interest.

There are many kinds of image features that may be extracted, however,color and texture image features (including “derived” color and texturefeatures as described herein) have been found herein to be particularlyuseful. For example, extracting image features may include extractingcolor data comprising a median of an image color channel within a regionof interest. Extracting image features may comprise extracting texturedata comprising one or more of: energy, correlation and homogeneity ofthe eye fundus in one or more color channels. Extracting image featuresmay comprise extracting texture data comprising one or more of: energy,correlation and homogeneity of the eye fundus in one or more of an L, Aand B channel of the first image transformed to a CIELAB image.Extracting image features may comprise extracting a mean of all thestandard deviations within one or more sub-regions of the first imagefrom channel A and B of a CIELAB transformation of the first image.Extracting image features may comprise extracting a variance of all thestandard deviations within one or more sub-regions of the eye fundus inchannel A and B of a CIELAB transformation of the first image.Extracting image features may comprise extracting a normalized histogramof one or more values of channels L, A and B of a CIELAB transformationof the first image. Extracting image features may comprise extracting aratio of a square of the mean value of at least a portion of thesubject's eye fundus from the first image by a square root of a contrasttexture value of at least the portion of the subject's eye fundus in thefirst image of channels A and B of a CIELAB transformation of the firstimage. Extracting image features may comprise extracting a ratio ofsquare of the variance of a plurality of standard deviations within oneor more sub-regions of at least a portion of the subject's eye fundusfrom the first image by a square root of an energy texture value in atleast the portion of the subject's eye fundus in the first image ofchannels A and B of a CIELAB transformation of the first image.Extracting image features may comprise extracting a product of a meanvalue of at least a portion of the subject's eye fundus from the firstimage and a correlation texture value of at least the subject's eyefundus from the first image of channels A and B of a CIELABtransformation of the first image.

Color and textural features that may be extracted from an eye fundus mayinclude extraction of color features such as the average color hue valueor a range of percentiles of color hue value of an eye fundus. Examplesof specific color features that may be extracted include the averagecolor value (hue) of eye fundus, and zero or more percentiles of colorof eye fundus. Extracted texture features may be those features whichcharacterize the degree of uniformity, coarseness or smoothness withinan eye fundus image at a pixel level comparative scale. An example ofsuch an extracted texture feature is average contrast value of an eyefundus, where contrast value is a measure of the intensity contrastbetween a pixel and its neighbor over the whole image. Another exampleis an average energy value of an eye fundus, wherein energy value is ameasure of the degree of “uniformity” in an image. Another example is anaverage correlation value of an eye fundus, where correlation value is ameasure of how correlated a pixel is to its neighbor over the wholeimage. Yet another example is average homogeneity value of an eyefundus, where homogeneity value is a measure of how evenly (or notevenly) intensity values are distributed over the entire image. Each ofthese examples may be mathematically defined as known in the art.

Texture features may also be extracted as one or more levels that aregreater than the pixel level comparative scale (in which the smallestunits of comparison are aggregated pixels, or sub-regions, typicallyadjacent to each other). For example, extracted texture features mayinclude features which characterizes the degree of uniformity,coarseness or smoothness within an eye fundus image at a sub-regionlevel comparative scale. An example of such a feature includes: averageof standard deviations of sub-regions of an eye fundus, which indicatesa measure of the degree of “coarseness” or “fineness” of an image. Eachsub-region may have a different degree of “coarseness” or “fineness” andthese localized textural differences can be captured and averaged usingthis feature. Another example includes a variance of standard deviationsof sub-regions of an eye fundus, which indicates a measure of avariation of “coarseness” or “fineness” of an image. Each sub-region mayhave a different variation of “coarseness” or “fineness” and theselocalized textural differences can be captured in each sub-region andits variation across the image can be quantified using this feature.

Color and textural features that may be extracted include combined colorand textural features. Extracted color and textural features (combinedcolor and texture features) may characterizes the effect of imagesmoothness or coarseness for a certain color hue of the eye fundus at apixel level comparative scale. An example of this type of featureincludes a ratio of color value by contrast value of an eye fundus,which may provide increased separability of high hue-high contrast fromlow-hue low contrast eye fundus images. Another example is the ratio ofcolor value and correlation value of an eye fundus, which may provideincreased separability of high hue-low correlation from low-hue highcorrelation eye fundus images.

Combined color and texture features that may be extracted includingextracted combined color and texture features that characterize theeffect of image smoothness or coarseness for a certain color hue of theeye fundus at a sub-region level comparative scale. For example, acombined color and texture feature includes a ratio of variance of allthe standard deviations by the energy value of sub-regions of an eyefundus, which may provide an increased separability of high hue-highcoarse from low-hue low coarse eye fundus images.

In general, also described herein are methods and apparatuses that areconfigured to detect when a lens adapter is connected to the device, andparticularly to a mobile device or smart phone such as a smartphone. Forexample, a method of detecting if a lens device is attached to a mobiledevice or smart phone having a digital camera may include: taking animage using the digital camera of the mobile device or smart phone;comparing an average value for each of a plurality of clusters of pixelsat a plurality of regions from the image to a first threshold value;indicating that the lens device is attached when the average values ofeach of the clusters of pixels in the plurality of clusters of pixelsare lower than the first threshold value.

A method of detecting if a lens device is attached to a digital cameradevice may include: taking an image using the digital camera device;comparing an average value of a first plurality of pixels at a firstcorner region of the image to a first threshold value; comparing anaverage value of a second plurality of pixels at a second corner regionof the image to the first threshold value; comparing an average value ofa third plurality of pixels at a central region of the image to a secondthreshold value when the average values of the first and secondplurality of pixels are both lower than the first threshold value; andindicating that the lens device is attached when the average values ofthe first and second plurality of pixels are both lower than the firstthreshold value and the average value of the third plurality of pixelsis higher than the second threshold value.

A method of detecting if a selected lens device is attached to a mobiledevice having a digital camera may include: taking an image using thedigital camera of the mobile device; comparing an average value for eachof a plurality of clusters of pixels at a plurality of corner regions ofthe image to a first threshold value; comparing the average value of acentral cluster of pixels at a central region of the image to a secondthreshold value; indicating that the lens device is attached when theaverage values of each of the clusters of pixels in the plurality ofclusters of pixels are lower than the first threshold value and whereinthe average value of the central cluster of pixels is higher than thesecond threshold value; and beginning a medical recording session whenthe lens device is indicated as attached.

The lens device may be a camera configured to be inserted into asubject's ear. The camera device may be a mobile device or smart phone(e.g., smartphone) having a built-in camera, as mentioned above.

Comparing the average value may comprise comparing an average color RGBcolor values to the first threshold value. The first threshold value maybe a value indicating a dark region. Once the lens is detected andindicated to be attached, the device may proceed to operate, forexample, turning on a light source if the lens device is indicated asattached.

Any of these methods may also include comparing an average value of afourth plurality of pixels at a third corner region of the image to thefirst threshold value, and indicating that the lens device is attachedwhen the average values of the first, second and fourth plurality ofpixels are all lower than the first threshold value and the averagevalue of the third plurality of pixels is higher than the secondthreshold value. Any of these methods may also include detecting one ormore markings in the image identifying the lens device.

For the purpose of understanding the present invention, references aremade in the text to exemplary embodiments of an ophthalmoscope and atelescope. It should be understood that no limitations on the scope ofthe invention are intended by describing these exemplary embodiments.The adapter of the present invention can connect any image capturedevice to a viewing instrument using any attachment means that has asingle bracket with a frame that holds the image capture device securelyin place, and the same bracket has an eyepiece section and a bodysection which respectively connect the lens of the image capture deviceproximate to the view port section of the viewing instrument and the adistal portion of the image capture device to another section of theviewing instrument, such as a handle or support. The adapter aligns theimage capture device's camera lens, preferably a high-resolution camerasystem, with the optical axis of the viewing instrument. With the imagecapture device mated to the viewing instrument with the adapter, aprocessor that is preferably in the image capture device can be used todisplay control panels and preview screens, receive information from theuser or a smart-scope and perform a number of processing tasks thatimprove the overall imaging system. For the ophthalmological imagingembodiment, the adapter securely aligns the optical axis of theophthalmoscope and the smart-phone in the x-axis, the y-axis and thez-axis.

Any of the apparatuses and methods described herein may be systems andmethods for diagnostic imaging. These systems and methods for image orvideo capture and analysis may be adapted for use with a mobile device.The examples described herein may be mainly used with a mobile phone(e.g., smartphone), with an attachable imaging lens (attachment) asdescribed above, but they could also take the form of an integrated,stand-alone device. A system may include multiple attachments(components) forming a modular system, or the like. In general, theapparatuses and methods described herein may address the challenges ofimaging with a mobile device, including illumination, calibration, andnormalization of the data collected, as well as practical issues such asease of manufacturing. In addition to the examples of otoscopes andderma scopes described herein, other imaging applications may beincluded, such as an endoscope, laryngoscope, ophthalmoscope, generalmicroscope, as well as multi-function or modular devices which can serveseveral imaging and/or other data collection purposes.

While eye checking is detailed above through capturing an eye imageusing a mobile device camera; extracting features of the eye; applying adeep learning neural network to detect potential eye damage; the systemcan handle nose, throat and ear issues.

In one aspect, a method to inspect a nose includes capturing a noseimage using a mobile device camera; extracting features of the nose;applying a deep learning neural network to detect potential nose damage;and reporting the potential damage for treatment. The system checks thenasal septum is pink, in the midline, and intact. Red and swollenmucosa, which suggests acute allergic rhinitis; Pale and boggy mucosa,which suggests chronic allergy; and Red and dry mucosa, which suggestsdecongestant use or anticholinergic effect. The phone cameratransilluminates the nasal septum to look for perforations. Shine thelight on one side of the septum and look at the other side. Lightshining through suggests a septal perforation. Common causes of septalperforations include nose picking, infection, syphilis, tuberculosis,collagen vascular disease, Wegener's granulomatosis, systemic lupuserythematosus, rheumatoid arthritis, exposure to toxins, previouscocaine use, and chromium poisoning. The system looks for nasal septaldeformities. Deformities of the vomer (“plowshare”), the unpaired flatbone that forms the inferior and posterior part of the nasal septum, arecommon after vaginal deliveries. The inferior and middle turbinates andthe middle meatus between them should be pink, intact, smooth, andmoist. The area should be free of foreign body(s). Note any masses andany deviations from normal, such as a red, pale, or bluish-gray color,bogginess, dryness, fissures, crusts, exudate, edema, polyps, ulcers,watery discharge (rhinorrhea), mucopurulent discharge, or bloodydischarge. Drainage and polyps are abnormal. Polyps are usuallynontender and a sign of allergy. Consider aspirin sensitivity if thepatient also has asthma. Purulent mucus suggests upper respiratoryinfection or sinusitis. Bloody discharge suggests local trauma or aplatelet abnormality. Pulsation of the nasal arteries in the mucusmembrane is increased in thoracic aortic aneurysm (Bozzolo's sign).Clear nasal discharge most commonly suggests allergic rhinitis or viralinfection. Purulent discharge suggests bacterial infection.

In a further aspect, a method to inspect an ear includes capturing anear image (including membranes such as tympanic membranes) using amobile device camera; extracting features of the ear; applying a deeplearning neural network to detect potential ear damage; and reportingthe potential ear damage for treatment. More on the ear inspection isdetailed in U.S. Pat. No. 9,445,713.

In another aspect, a method to inspect a throat includes capturing athroat image using a mobile device camera; extracting features of thethroat; applying a deep learning neural network to detect potentialthroat problems; and reporting the potential throat damage fortreatment. The network inspects the lips, oral mucosa and gums: Evaluatethe lips, determine color and moisture level. Scaliness or cracking maybe indicative of pathology; Evaluate the oral mucosa for ulcers, colorchanges or nodules. Capture the color of the normally pink gums,recognizing that in people of color, brown patches may be normal.Evaluate the dentition and note the presence of gum erythema or edemasuggestive of gingivitis. The system inspects the color and shape of thehard and soft palates. Normal mucosa is pink with a ridged hard palate.Torus palatinus may be present, and is a variation of normal. The tongueis inspected for symmetry. The normal architecture of the tongueincludes papillae that get bigger toward the rear of the tongue. Inspectthe top, sides and undersurface of the tongue, noting any colorvariation, ulcerations or nodular lesions. With the patient's mouthopen, ask the patient to say, “ahh.” In a patient with an intact 10thcranial nerve, this action should raise the soft palate enabling fullvisualization of the pharynx. If this does not allow visualization, usea tongue blade to depress the tongue. Inspect the tonsilar pillars,tonsils if present, uvula and pharynx. Evaluate for color, symmetry,exudate and enlargement.

One aspect of the body sensor optically measures physiologicalparameters related to blood constituents by transmitting multiplewavelengths of light and receiving the light after attenuation bypulsatile blood flow within the eye. Advanced physiological monitoringsystems may incorporate pulse oximetry in addition to advanced featuresfor the calculation and display of other blood parameters, such ascarboxyhemoglobin (HbCO), methemoglobin (HbMet) and total hemoglobin(Hbt), as a few examples. In other embodiments, the device hasphysiological monitors and corresponding multiple wavelength opticalsensors capable of measuring parameters in addition to SpO2, such asHbCO, HbMet and Hbt are described in at least U.S. patent applicationSer. No. 12/056,179, filed Mar. 26, 2008, titled Multiple WavelengthOptical Sensor and U.S. patent application Ser. No. 11/366,208, filedMar. 1, 2006, titled Noninvasive Multi-Parameter Patient Monitor, bothincorporated by reference herein. Further, noninvasive blood parametermonitors and corresponding multiple wavelength optical sensors to senseSpO2, pulse rate, perfusion index (PI), signal quality (SiQ), pulsevariability index (PVI), HbCO and HbMet among other parameters. Heartpulse can be detected by measuring the dilation and constriction of tinyblood vessels in the ear canal. In one embodiment, the dilationmeasurement is done optically and in another embodiment, amicromechanical MEMS sensor is used. ECG sensor can be used where theelectrode can detect a full and clinically valid electrocardiogram,which records the electrical activity of the heart. The device candetect heart rate (HR) as a biomarker in heart failure (HF) both ofdiagnostic and prognostic values. HR is a determinant of myocardialoxygen demand, coronary blood flow, and myocardial performance and iscentral to the adaptation of cardiac output to metabolic needs.Increased HR can predict adverse outcome in the general population andin patients with chronic HF. Part of the ability of HR to predict riskis related to the forces driving it, namely, neurohormonal activation.HR relates to emotional arousal and reflects both sympathetic andparasympathetic nervous system activity. When measured at rest, HRrelates to autonomic activity during a relaxing condition. HR reactivityis expressed as a change from resting or baseline that results afterexposure to stimuli. These stress-regulating mechanisms prepare the bodyfor fight or flight responses, and as such can explain individualdifferences to psychopathology. Thus, the device monitors HR as abiomarker of both diagnostic and prognostic values. The HR output can beused to analyze heart-rate variability (HRV) (the time differencesbetween one beat and the next) and HRV can be used to indicate thepotential health benefits of food items. Reduced HRV is associated withthe development of numerous conditions for example, diabetes,cardiovascular disease, inflammation, obesity and psychiatric disorders.Aspects of diet that are viewed as undesirable, for example high intakesof saturated or trans-fat and high glycaemic carbohydrates, have beenfound to reduce HRV. The consistent relationship between HRV, health andmorbidity allows the system to use HRV as a biomarker when consideringthe influence of diet on mental and physical health. Further HRV can beused as a biomarker for aging. HRV can also act as biomarkers for:

Overtraining: “Cumulative or too intensive sporting activity (e.g.competition series, overtraining syndrome), however, brings about adecrease in HRV”

Physical Fitness: “People who have an active lifestyle and maintain agood or high level of physical fitness or above-average sportingactivity can achieve an increase in their basic parasympathetic activityand thus an increase in their HRV.”

Overweight: “an elevated body weight or elevated free-fat mass57correlates with a decrease in HRV. Both active and passive smoking leadto an increase in HRV”

Alcohol Abuse: “Regular chronic alcohol abuse above the alcohol quantityof a standard drink for women or two standard drinks for men reducesHRV, while moderate alcohol consumption up to these quantities does notchange the HRV and is not associated with an increase”

Smoking: “Both active and passive smoking lead to an increase in HRV”

Sleep: Another important factor that affects your HRV score is theamount and quality of sleep.

In one embodiment, the system determines a dynamical marker ofsino-atrial instability, termed heart rate fragmentation (HRF) and isused a dynamical biomarker of adverse cardiovascular events (CVEs). Inhealthy adults at rest and during sleep, the highest frequency at whichthe sino-atrial node (SAN) rate fluctuates varies between ˜0.15 and 0.40Hz. These oscillations, referred to as respiratory sinus arrhythmia, aredue to vagally-mediated coupling between the SAN and breathing. However,not all fluctuations in heart rate (HR) at or above the respiratoryfrequency are attributable to vagal tone modulation. Under pathologicconditions, an increased density of reversals in HR acceleration sign,not consistent with short-term parasympathetic control, can be observed.

The system captures ECG data as biomarkers for cardiac diseases such asmyocardial infarction, cardiomyopathy, atrioventricular bundle branchblock, and rhythm disorders. The ECG data is cleaned up, and the systemextracts features by taking quantiles of the distributions of measureson ECGs, while commonly used characterizing feature is the mean. Thesystem applies commonly used measurement variables on ECGs withoutpreselection and use dimension reduction methods to identify biomarkers,which is useful when the number of input variables is large and no priorinformation is available on which ones are more important. Threefrequently used classifiers are used on all features and todimension-reduced features by PCA. The three methods are from classicalto modern: stepwise discriminant analysis (SDA), SVM, and LASSO logisticregression.

In one embodiment, four types of features are considered as inputvariables for classification: T wave type, time span measurements,amplitude measurements, and the slopes of waveforms for features such as

-   -   (1) T Wave Type. The ECGPUWAVE function labels 6 types of T        waves for each beat: Normal, Inverted, Positive Monophasic,        Negative Monophasic, Biphasic Negative-Positive, and Biphasic        Positive-Negative based on the T wave morphology. This is the        only categorical variable considered.    -   (2) Time Span Measurements. Six commonly used time span        measurements are considered: the length of the RR interval, PR        interval, QT interval, P wave, QRS wave, and T wave.    -   (3) Amplitude Measurements. The amplitudes of P wave, R-peak,        and T wave are used as input variables. To measure the P wave        amplitude, we first estimate the baseline by taking the mean of        the values in the PR segment, ST segment, and TP segment (from        the end of the T wave to the start of the P wave of the next        heartbeat), then subtract the maximum and minimum values of the        P wave by the estimated baseline, and take the one with a bigger        absolute value as the amplitude of P wave. Other amplitude        measurements are obtained similarly.    -   (4) The Slopes of Waveforms. The slopes of waveforms are also        considered to measure the dynamic features of a heartbeat. Each        heartbeat is split into nine segments and the slope of the        waveform in each segment is estimated by simple linear        regression.

The device can include EEG sensors that communicate with the smart phonethrough Bluetooth. The EEG sensors measure a variety of EEGresponses—alpha rhythm, ASSR, SSVEP and VEP—as well as multiplemechanical signals associated with cardiac activity, speech andbreathing. EEG sensors can be used where electrodes provide low contactimpedance with the skin over a prolonged period of time. A low impedancestretchable fabric is used as electrodes. The system captures variousEEG paradigms: ASSR, steady-state visual evoked potential (SSVEP),transient response to visual stimulus (VEP), and alpha rhythm. The EEGsensors can predict and assess the fatigue based on the neural activityin the alpha band which is usually associated with the state of wakefulrelaxation and manifests itself in the EEG oscillations in the 8-12 Hzfrequency range, centered around 10 Hz. The loss of alpha rhythm is alsoone of the key features used by clinicians to define the onset of sleep.A mechanical transducer (electret condenser microphone) within itsmultimodal electro-mechanical sensor, which can be used as a referencefor single-channel digital denoising of physiological signals such asjaw clenching and for removing real-world motion artifacts from ear-EEG.In one embodiment, a microphone at the tip of the earpiece facingtowards the eardrum can directly capture acoustic energy traveling fromthe vocal chords via auditory tube to the ear canal. The output of sucha microphone would be expected to provide better speech quality than thesealed microphone within the multimodal sensor.

The system can detect auditory steady-state response (ASSR) as abiomarker a type of ERP which can test the integrity of auditorypathways and the capacity of these pathways to generate synchronousactivity at specific frequencies. ASSRs are elicited by temporallymodulated auditory stimulation, such as a train of clicks with a fixedinter-click interval, or an amplitude modulated (AM) tone. After theonset of the stimulus, the EEG or MEG rapidly entrains to the frequencyand phase of the stimulus. The ASSR is generated by activity within theauditory pathway. The ASSR for modulation frequencies up to 50 Hz isgenerated from the auditory cortex based on EEG. Higher frequencies ofmodulation (>80 Hz) are thought to originate from brainstem areas. Thetype of stimulus may also affect the region of activation within theauditory cortex. Amplitude modulated (AM) tones and click train stimuliare commonly used stimuli to evoke the ASSR.

The EEG sensor can be used as a brain-computer interface (BCI) andprovides a direct communication pathway between the brain and theexternal world by translating signals from brain activities into machinecodes or commands to control different types of external devices, suchas a computer cursor, cellphone, home equipment or a wheelchair. SSVEPcan be used in BCI due to high information transfer rate (ITR), littletraining and high reliability. The use of in-ear EEG acquisition makesBCI convenient, and highly efficient artifact removal techniques can beused to derive clean EEG signals.

The system can measure visually evoked potential (VEP), visually evokedresponse (VER) or visually evoked cortical potential (VECP). They referto electrical potentials, initiated by brief visual stimuli, which arerecorded from the scalp overlying visual cortex, VEP waveforms areextracted from the electro-encephalogram (EEG) by signal averaging. VEPsare used primarily to measure the functional integrity of the visualpathways from retina via the optic nerves to the visual cortex of thebrain. VEPs better quantify functional integrity of the optic pathwaysthan scanning techniques such as magnetic resonance imaging (Mill). Anyabnormality that affects the visual pathways or visual cortex in thebrain can affect the VEP. Examples are cortical blindness due tomeningitis or anoxia, optic neuritis as a consequence of demyelination,optic atrophy, stroke, and compression of the optic pathways by tumors,amblyopia, and neurofibromatosis. In general, myelin plaques common inmultiple sclerosis slow the speed of VEP wave peaks. Compression of theoptic pathways such as from hydrocephalus or a tumor also reducesamplitude of wave peaks.

A bioimpedance (BI) sensor can be used to determine a biomarker of totalbody fluid content. The BIA is a noninvasive method for evaluation ofbody composition, easy to perform, and fast, reproducible, andeconomical and indicates nutritional status of patients by estimatingthe amount of lean body mass, fat mass, body water, and cell mass. Themethod also allows the assessment of patient's prognosis through the PA,which has been applied in patients with various diseases, includingchronic liver disease. The phase angle varies according to thepopulation and can be used for prognosis.

In another embodiment, the BI sensor can estimate glucose level. This isdone by measuring the bioimpedance at various frequencies, where highfrequency Bi is related to fluid volume of the body and low frequency BIis used to estimate the volume of extracellular fluid in the tissues.

The step of determining the amount of glucose can include comparing themeasured impedance with a predetermined relationship between impedanceand blood glucose level. In a particular embodiment, the step ofdetermining the blood glucose level of a subject includes ascertainingthe sum of a fraction of the magnitude of the measured impedance and afraction of the phase of the measured impedance. The amount of bloodglucose, in one embodiment, is determined according to the equation:Predicted glucose=(0.31)Magnitude+(0.24)Phase where the impedance ismeasured at 20 kHz. In certain embodiments, impedance is measured at aplurality of frequencies, and the method includes determining the ratioof one or more pairs of measurements and determining the amount ofglucose in the body fluid includes comparing the determined ratio(s)with corresponding predetermined ratio(s), i.e., that have beenpreviously correlated with directly measured glucose levels. Inembodiments, the process includes measuring impedance at two frequenciesand determining the amount of glucose further includes determining apredetermined index, the index including a ratio of first and secondnumbers obtained from first and second of the impedance measurements.The first and second numbers can include a component of said first andsecond impedance measurements, respectively. The first number can be thereal part of the complex electrical impedance at the first frequency andthe second number can be the magnitude of the complex electricalimpedance at the second frequency. The first number can be the imaginarypart of the complex electrical impedance at the first frequency and thesecond number can be the magnitude of the complex electrical impedanceat the second frequency. The first number can be the magnitude of thecomplex electrical impedance at the first frequency and the secondnumber can be the magnitude of the complex electrical impedance at thesecond frequency. In another embodiment, determining the amount ofglucose further includes determining a predetermined index in which theindex includes a difference between first and second numbers obtainedfrom first and second of said impedance measurements. The first numbercan be the phase angle of the complex electrical impedance at the firstfrequency and said second number can be the phase angle of the complexelectrical impedance at the second frequency.

The electrodes can be in operative connection with the processorprogrammed to determine the amount of glucose in the body fluid basedupon the measured impedance. In certain embodiments, the processorwireless communicates with an insulin pump programmed to adjust theamount of insulin flow via the pump to the subject in response to thedetermined amount of glucose. The BIA electrodes can be spaced betweenabout 0.2 mm and about 2 cm from each other.

In another aspect, the BI sensor provides non-invasive monitoring ofglucose in a body fluid of a subject. The apparatus includes means formeasuring impedance of skin tissue in response to a voltage appliedthereto and a microprocessor operatively connected to the means formeasuring impedance, for determining the amount of glucose in the bodyfluid based upon the impedance measurement(s). The means for measuringimpedance of skin tissue can include a pair of spaced apart electrodesfor electrically conductive contact with a skin surface. Themicroprocessor can be programmed to compare the measured impedance witha predetermined correlation between impedance and blood glucose level.The apparatus can include means for measuring impedance at a pluralityof frequencies of the applied voltage and the program can include meansfor determining the ratio of one or more pairs of the impedancemeasurements and means for comparing the determined ratio(s) withcorresponding predetermined ratio(s) to determine the amount of glucosein the body fluid.

In a particular embodiment, the apparatus includes means for calibratingthe apparatus against a directly measured glucose level of a saidsubject. The apparatus can thus include means for inputting the value ofthe directly measured glucose level in conjunction with impedancemeasured about the same time, for use by the program to determine theblood glucose level of that subject at a later time based solely onsubsequent impedance measurements.

One embodiment measures BI at 31 different frequencies logarithmicallydistributed in the range of 1 kHz to 1 Mhz (10 frequencies per decade).Another embodiment measures BI a t two of the frequencies: 20 and 500kHz; and in the second set of experiments, 20 kHz only. It may be foundin the future that there is a more optimal frequency or frequencies. Itis quite possible, in a commercially acceptable instrument thatimpedance will be determined at at least two frequencies, rather thanonly one. For practical reasons of instrumentation, the upper frequencyat which impedance is measured is likely to be about 500 kHz, but higherfrequencies, even has high as 5 MHz or higher are possible and areconsidered to be within the scope of this invention. Relationships maybe established using data obtained at one, two or more frequencies.

One embodiment, specifically for determining glucose levels of asubject, includes a 2-pole BI measurement configuration that measuresimpedance at multiple frequencies, preferably two well spaced apartfrequencies. The instrument includes a computer which also calculatesthe index or indices that correlate with blood glucose levels anddetermines the glucose levels based on the correlation(s). an artificialneural network to perform a non-linear regression.

In another embodiment, a BI sensor can estimate sugar content in humanblood based on variation of dielectric permeability of a finger placedin the electrical field of transducer. The amount of sugar in humanblood can also be estimate by changing the reactance of oscillatingcircuits included in the secondary circuits of high-frequency generatorvia direct action of human upon oscillating circuits elements. With thismethod, the amount of sugar in blood is determined based on variation ofcurrent in the secondary circuits of high-frequency generator. Inanother embodiment, a spectral analysis of high-frequency radiationreflected by human body or passing through the human body is conducted.The phase shift between direct and reflected (or transmitted) waves,which characterizes the reactive component of electrical impedance,represents a parameter to be measured by this method. The concentrationof substances contained in the blood (in particular, glucoseconcentration) is determined based on measured parameters of phasespectrum. In another embodiment, glucose concentration is determined bythis device based on measurement of human body region impedance at twofrequencies, determining capacitive component of impedance andconverting the obtained value of capacitive component into glucoseconcentration in patient's blood. Another embodiment measures impedancebetween two electrodes at a number of frequencies and deriving the valueof glucose concentration on the basis of measured values. In anotherembodiment, the concentration of glucose in blood is determined basedmathematical model.

The microphone can also detect respiration. Breathing creates turbulencewithin the airways, so that the turbulent airflow can be measured usinga microphone placed externally on the upper chest at the suprasternalnotch. The respiratory signals recorded inside the ear canal are weak,and are affected by motion artifacts arising from a significant movementof the earpiece inside the ear canal. A control loop involving knowledgeof the degree of artifacts and total output power from the microphonescan be used for denoising purposes from jaw movements. Denoising can bedone for EEG, ECG, PPG waveforms.

An infrared sensor unit can detect temperature detection in conjunctionwith an optical identification of objects allows for more reliableidentification of the objects, e.g. of the eardrum. Providing the deviceadditionally with an infrared sensor unit, especially arrangedcentrically at the distal tip, allows for minimizing any risk ofmisdiagnosis.

In one implementation information relating to characteristics of thepatient's tympanic cavity can be evaluated or processed. In this casethe electronics includes a camera that detects serous or mucous fluidwithin the tympanic cavity can be an indicator of the eardrum itself,and can be an indicator of a pathologic condition in the middle ear.Within the ear canal, only behind the eardrum, such body fluid can beidentified. Thus, evidence of any body fluid can provide evidence of theeardrum itself, as well as evidence of a pathologic condition, e.g. OME.

In a method according to the preferred embodiment, preferably, anintensity of illumination provided by the at least one light source isadjusted such that light emitted by the at least one light source isarranged for at least partially transilluminating the eardrum in such away that it can be reflected at least partially by any object or bodyfluid within the subject's tympanic cavity arranged behind the eardrum.The preferred embodiment is based on the finding that translucentcharacteristics of the eardrum can be evaluated in order to distinguishbetween different objects within the ear canal, especially in order toidentify the eardrum more reliably. Thereby, illumination can beadjusted such that tissue or hard bone confining the ear canal isoverexposed, providing reflections (reflected radiation or light),especially reflections within a known spectrum, which can be ignored,i.e. automatically subtracted out. Such a method enables identificationof the eardrum more reliably.

In particular, the degree of reddishness or reflectivity of light in thered spectral range can be determined at different illuminationintensities. It can therefore be distinguished more reliably betweenlight reflected by the eardrum itself, or by objects or fluids behindthe eardrum, or by the mucosal covering the tympanic cavity wall. Thereflectivity of light may be evaluated with respect to reflectivitywithin e.g. the green or blue spectral range. Typical spectralwavelength maxima are 450 nm (blue light), 550 nm (green light), and 600nm (red light) for a respective (color) channel. The electronic imagingunit, e.g. comprising a color video camera, or any color sensitivesensor, may record images with respect to the red, green or bluespectral range, respectively. A logic unit may calculate, compare andnormalize brightness values for each read, green and blue image,especially with respect to each separate pixel of the respective image.Such an evaluation may also facilitate medical characterization of theeardrum. In particular, the healthy eardrum is a thin, semitransparentmembrane containing only few relatively small blood vessels. Incontrast, an inflamed eardrum may exhibit thickening and/or increasedvascularization. Also, any skin or tissue confining the ear canal aswell as any mucosa in the middle ear may be heavily vascularized. Inother words: The reflectivity in the different spectral ranges variesconsiderably between the different structures or objects as well asbetween healthy and inflamed tissue. Thus, referring to the spectralrange enables more reliable differentiation between light reflected bythe eardrum itself, or by objects or any fluid behind the eardrum, or bythe tympanic cavity wall covered by mucosa.

Thereby, the risk of confounding any red (inflamed) section of the earcanal and the eardrum can be minimized. Also, the eardrum can beidentified indirectly by identifying the tympanic cavity. In particular,any opaque fluid, especially amber fluid containing leukocytes andproteins, within the tympanic cavity may influence the spectrum ofreflected light, depending on the intensity of illumination. At arelatively high intensity of illumination, the spectrum of reflectedlight will be typical for scattering in serous or mucous fluidcontaining particles like leukocytes, as light transmits the eardrum andis at least partially reflected by the opaque fluid. At a relatively lowintensity of illumination, the spectrum of reflected light will bedominated by the eardrum itself, as a considerable fraction of the lightdoes not transmit the eardrum, but is directly reflected by the eardrum.Thus, information relating to the tympanic cavity, especially moredetailed color information, can facilitate identification of the eardrumas well as of pathologic conditions in the middle ear.

Transilluminating the eardrum can provide supplemental information withrespect to the characteristics of the eardrum (e.g. the shape,especially a convexity of the eardrum), and/or with respect to thepresence of any fluid within the tympanic cavity. Spectral patterns ofreflected light which are typical for eardrum reflection and tympaniccavity reflection can be use to determine the area of interest as wellas a physiologic or pathologic condition of the eardrum and the tympaniccavity, especially in conjunction with feedback controlled illumination.

Any fluid within the tympanic cavity evokes a higher degree ofreflection than the physiologically present air. The fluid increasesreflectance. In contrast, in case the tympanic cavity is filled withair, any light transilluminating the eardrum is only reflected withinferior intensity, as most of the light is absorbed within the tympaniccavity. In other words:

transilluminating the eardrum and evaluating reflected light independence on the intensity of illumination can facilitate determiningspecific characteristics of the eardrum, e.g. an absolute degree ofreflectivity in dependence on different wavelengths and intensities,providing more information or more certain information with respect tothe type of tissue and its condition. Evaluating reflected light cancomprise spectral analysis of translucent reflection, especially atdifferent illumination intensities.

The degree of reflection in the red spectrum from the area of theeardrum may depend on the illumination level, i.e. the intensity ofillumination. In particular, the red channel reflection can increasewith increasing intensity of illumination. The higher the intensity ofillumination, the higher the red channel reflection intensity. Also, ithas been found that at relatively high intensities of illumination, notonly the eardrum, but also any other tissue will reflect more light inthe red spectrum. Therefore, on the one hand, providing a control orlogic unit which is arranged for adjusting the intensity of illuminationcan facilitate identification of the eardrum. On the other hand, it canfacilitate determining specific characteristics of the eardrum, e.g. anabsolute degree of red channel reflection, such that the red channelreflection provides more information or more certain information withrespect to the type of tissue and state of the tissue.

The degree of red channel reflection does not increase in the samemanner with increasing intensity of illumination, depending on thepresence of body fluid behind the eardrum. It has been found that incase there is body fluid within the tympanic cavity, with increasingintensity of illumination, the degree of red channel reflection does notincrease as strongly as if the tympanic cavity was empty. Thus, based onthe (absolute) degree of red channel reflection, the presence of fluidbehind the eardrum can be evaluated. This may facilitate determinationof pathologic conditions, e.g. OME.

The camera and process can identify pattern recognition of geometricalpatterns, especially circular or ellipsoid shapes, or geometricalpatterns characterizing the malleus bone, or further anatomicalcharacteristics of the outer ear or the middle ear. Pattern recognitionallows for more reliable identification of the eardrum. Patternrecognition can comprise recognition based on features and shapes suchas the shape of e.g. the malleus, the malleus handle, the eardrum orspecific portions of the eardrum such as the pasr flaccida or thefibrocartilagenous ring. In particular, pattern recognition may compriseedge detection and/or spectral analysis, especially shape detection of acircular or ellipsoid shape with an angular interruption at the malleusbone or pars flaccida.

In a method according to the preferred embodiment, preferably, themethod further comprises calibrating a spectral sensitivity of theelectronic imaging unit and/or calibrating color and/or brightness ofthe at least one light source. Calibration allows for more reliableidentification of objects. It has been found that in case the lightintensity is very high allowing for passing light through a healthyeardrum, which is semitransparent, a considerable amount of light withinthe red spectrum can be reflected by the tympanic cavity (especially dueto illumination of red mucosa confining the middle ear). Thus,calibrating brightness or the intensity of emitted light enables moreaccurate evaluation of the (absolute) degree of red channel reflectionand its source. In other words, spectral calibration of the imagingsensor in combination with spectral calibration of the illuminationmeans allows for the evaluation of the tissue types and conditions.

Calibration can be carried out e.g. based on feedback illuminationcontrol with respect to different objects or different kinds of tissue,once the respective object or tissue has been identified. Thereby,spectral norm curves with respect to different light intensities providefurther data based on which calibration can be carried out.

In one embodiment, the camera can extend into the ear canal and can helpdetect ear issues such as:

Chronic disease. Some cases of hearing loss are not caused by a problemwith the ear, but by an interruption of blood flow to the ear or brain.Strokes, heart disease, high blood pressure, diabetes, and rheumatoidarthritis can all cause mild to moderate hearing loss.

Meniere's disease. If the user is experiencing extreme dizziness, lossof balance, and nausea, a hearing screening could lead to a diagnosis ofMeniere's disease. This condition is caused by an imbalance of fluids inthe inner ear, causing a ringing in the ears (tinnitus), a blockedfeeling or hearing loss in one or both ears, and severe vertigo.

Paget's disease. This bone disorder may have no early symptoms, andcause lifelong injuries and medical conditions in the patient. As timegoes on, patients with Paget's disease may suffer hearing loss andchronic headaches, as well as nerve, bone, and joint pain. In severecases, patients may have abnormally large head sizes, improper spinecurvature, or severe bowing of the arms and legs.

Pendred syndrome. Pendred syndrome is a genetic condition that causeshearing loss, thyroid dysfunction, and balance problems in children. Achild who is born with Pendred syndrome is likely to lose hearingfunction early in life, in some cases before the child reaches threeyears old. Hearing loss caused by Pendred syndrome will usually worsenover time, and can lead to total deafness.

Otosclerosis. This disease causes the bones in the middle ear to harden,preventing them from conducting sound into the inner ear. Otosclerosiscan often be treated or even reversed with surgery.

In one particular variation for treating tinnitus, device may utilize anaudio signal, such as music and in particular music having a dynamicsignal with intensities varying over time with multiple peaks andtroughs throughout the signal. Other audio signals such as varioussounds of nature, e.g., rainfall, wind, waves, etc., or other signalssuch as voice or speech may alternatively be used so long as the audiosignal is dynamic. This audio signal may be modified according to amasking algorithm and applied through the device 14 and to the patientto partially mask the patient's tinnitus. An example of how an audiosignal may be modified is described in detail in U.S. Pat. No. 6,682,472(Davis), which is incorporated herein by reference in its entirety anddescribes a tinnitus treatment which utilizes software to spectrallymodify the audio signal in accordance with a predetermined maskingalgorithm which modifies the intensity of the audio signal at selectedfrequencies. The described predetermined masking algorithm providesintermittent masking of the tinnitus where the tinnitus is completelymasked during peaks in the audio signal and where the perceived tinnitusis detectable to the patient during troughs in the audio signal. Such analgorithm provides for training and habituation by the patient of theirtinnitus. Accordingly, the intensity of the audio signal may be modifiedacross the spectrum of the signal and may also be modified to accountfor any hearing loss that the patient may have incurred. The audiosignal having a dynamic spectrum with varying intensities. The audiosignal may completely mask the patient's tinnitus during peaks in thesignal while during troughs in the audio signal, the tinnitus may beperceived by the patient. Moreover, the masking algorithm may bemodified to account for any hearing loss of the patient.

The deep learning network can also be used to identify user health. Inembodiments that measure user health with heart rate, BI, ECG, EEG,temperature, or other health parameters, if an outlier situation exists,the system can flag to the user to follow up as an unusual sustainedvariation from normal health parameters. While this approach may notidentify exact causes of the variation, the user can seek help early.For example, a patient may be mostly healthy, but when he or she issick, the information pops out as outliers from the usual data. Suchoutliers can be used to scrutinize and predict patient health. The datacan be population based, namely that if a population spatially ortemporally has the same symptoms, and upon checking with the medicalhospitals or doctors to confirm the prediction, public health warningscan be generated. There are two main kinds of machine learningtechniques: Supervised learning: in this approach, a training datasample with known relationships between variables is submittediteratively to the learning algorithm until quantitative evidence(“error convergence”) indicates that it was able to find a solutionwhich minimizes classification error. Several types of artificial neuralnetworks work according to this principle; and Unsupervised learning: inthis approach, the data sample is analyzed according to some statisticaltechnique, such as multivariate regression analysis, principalcomponents analysis, cluster analysis, etc., and automaticclassification of the data objects into subclasses might be achieved,without the need for a training data set.

Medical prognosis can be used to predict the future evolution of diseaseon the basis of data extracted from known cases such as the predictionof mortality of patients admitted to the Intensive Care Unit, usingphysiological and pathological variables collected at admission. Medicaldiagnosis can be done, where ML is used to learn the relationshipbetween several input variables (such as signs, symptoms, patienthistory, lab tests, images, etc.) and several output variables (thediagnosis categories). An example from my research: using symptomsrelated by patients with psychosis, an automatic classification systemwas devised to propose diagnoses of a particular disease. Medicaltherapeutic decisions can be done where ML is used to propose differenttherapies or patient management strategies, drugs, etc., for a givenhealth condition or diagnosis. Example from my research: patients withdifferent types of brain hematomas (internal bleeding) were used totrain a neural network so that a precise indication for surgery wasgiven after having learned the relationships between several inputvariables and the outcome. Signal or image analysis can be done, whereML is used to learn how features extracted from physiological signals(such as an EKG) or images (such as an x-ray, tomography, etc.) areassociated to some diagnoses. ML can even be used to extract featuresfrom signals or images, for example, in the so-called “signalsegmentation”. Example from my research: non-supervised algorithms wereused to extract different image textures from brain MRIs (magneticresonance imaging), such as bone, meninges, white matter, gray matter,vases, ventricles, etc., and then classifying automatically unknownimages, painting each identified region with a different color. Inanother example large data sets containing multiple variables obtainedfrom individuals in a given population (e.g., those living in acommunity, or who have a given health care plan, hospital, etc.), areused to train ML algorithms, so as to discover risk associations andpredictions (for instance, what patients have a higher risk of emergencyrisk readmissions or complications from diabetes. Public health canapply ML to predict, for instance, when and where epidemics are going tohappen in the future, such as food poisoning, infectious diseases, boutsof environmental diseases, and so on.

The system can collect lifestyle and genetic data from variouspopulations for subsequent prediction and recommendation to similarlysituated users. The system collects attributes associated withindividuals that co-occur (i.e., co-associate, co-aggregate) withattributes of interest, such as specific disorders, behaviors andtraits. The system can identify combinations of attributes thatpredispose individuals toward having or developing specific disorders,behaviors and traits of interest, determining the level ofpredisposition of an individual towards such attributes, and revealingwhich attribute associations can be added or eliminated to effectivelymodify his or her lifestyle to avoid medical complications. Detailscaptured can be used for improving individualized diagnoses, choosingthe most effective therapeutic regimens, making beneficial lifestylechanges that prevent disease and promote health, and reducing associatedhealth care expenditures. It is also desirable to determine thosecombinations of attributes that promote certain behaviors and traitssuch as success in sports, music, school, leadership, career andrelationships. For example, the system captures information onepigenetic modifications that may be altered due to environmentalconditions, life experiences and aging. Along with a collection ofdiverse nongenetic attributes including physical, behavioral,situational and historical attributes, the system can predict apredisposition of a user toward developing a specific attribute ofinterest. In addition to genetic and epigenetic attributes, which can bereferred to collectively as pangenetic attributes, numerous otherattributes likely influence the development of traits and disorders.These other attributes, which can be referred to collectively asnon-pangenetic attributes, can be categorized individually as physical,behavioral, or situational attributes. The attribute categories andtheir interrelationships can correlate physical and behavioralattributes can be collectively equivalent to the broadest classicaldefinition of phenotype, while situational attributes can be equivalentto those typically classified as environmental. In one embodiment,historical attributes can be viewed as a separate category containing amixture of genetic, epigenetic, physical, behavioral and situationalattributes that occurred in the past. Alternatively, historicalattributes can be integrated within the genetic, epigenetic, physical,behavioral and situational categories provided they are made readilydistinguishable from those attributes that describe the individual'scurrent state. In one embodiment, the historical nature of an attributeis accounted for via a time stamp or other time-based marker associatedwith the attribute. As such, there are no explicit historicalattributes, but through use of time stamping, the time associated withthe attribute can be used to make a determination as to whether theattribute is occurring in what would be considered the present, or if ithas occurred in the past. Traditional demographic factors are typicallya small subset of attributes derived from the phenotype andenvironmental categories and can be therefore represented within thephysical, behavioral and situational categories.

Since the system captures information from various diverse populations,the data can be mined to discover combinations of attributes regardlessof number or type, in a population of any size, that causepredisposition to an attribute of interest. The ability to accuratelydetect predisposing attribute combinations naturally benefits from beingsupplied with datasets representing large numbers of individuals andhaving a large number and variety of attributes for each. Nevertheless,the one embodiment will function properly with a minimal number ofindividuals and attributes. One embodiment of the one embodiment can beused to detect not only attributes that have a direct (causal) effect onan attribute of interest, but also those attributes that do not have adirect effect such as instrumental variables (i.e., correlativeattributes), which are attributes that correlate with and can be used topredict predisposition for the attribute of interest but are not causal.For simplicity of terminology, both types of attributes are referred toherein as predisposing attributes, or simply attributes, that contributetoward predisposition toward the attribute of interest, regardless ofwhether the contribution or correlation is direct or indirect.

Adverse events related to sex and race are also analyzed. For example,for physiological reasons, certain events predominantly occur in males(for example, penile swelling and azoospermia). Drugs that aredisproportionately reported as causing adverse events in males were morelikely to be synthetically associated with these events. Similarly,adverse events that predominantly occur in either relatively young orrelatively old patients are analyzed.

“Off-label” adverse event data is also analyzed, and off-label usesrefer to any drug effect not already listed on the drug's packageinsert. For example, the SIDER database, extracted from drug packageinserts, lists 48,577 drug-event associations for 620 drugs and 1092adverse events that are also covered by the data mining. Offsidesrecovers 38.8% (18,842 drug-event associations) of SIDER associationsfrom the adverse event reports. Thus, Offsides finds differentassociations from those reported during clinical trials before drugapproval.

Polypharmacy side effects for pairs of drugs (Twosides) are alsoanalyzed. These associations are limited to only those that cannot beclearly attributed to either drug alone (that is, those associationscovered in Offsides). The database contains a significant associationfor which the drug pair has a higher side-effect association score,determined using the proportional reporting ratio (PRR), than those ofthe individual drugs alone. The system determines pairwise similaritymetrics between all drugs in the Offsides and SIDER databases. Thesystem can predict shared protein targets using drug-effectsimilarities. The side-effect similarity score between two drugs islinearly related to the number of targets that those drugs share.

The system can determine relationships between the proportion of sharedindications between a pair of drugs and the similarity of theirside-effect profiles in Offsides. The system can use side-effectprofiles to suggest new uses for old drugs. While the preferred systempredicts existing therapeutic indications of known drugs, the system canrecommend drug repurposing using drug-effect similarities in Offsides.

Corroboration of class-wide interaction effects with EMRs. The systemcan identify DDIs shared by an entire drug class. The class-classinteraction analysis generates putative drug class interactions. Thesystem analyzes laboratory reports commonly recorded in EMRs that may beused as markers of these class-specific DDIs.

In one embodiment, the knowledge-based repository may aggregate relevantclinical and/or behavioral knowledge from one or more sources. In anembodiment, one or more clinical and/or behavioral experts may manuallyspecify the required knowledge. In another embodiment, an ontology-basedapproach may be used. For example, the knowledge-based repository mayleverage the semantic web using techniques, such as statisticalrelational learning (SRL). SRL may expand probabilistic reasoning tocomplex relational domains, such as the semantic web. The SRL mayachieve this using a combination of representational formalisms (e.g.,logic and/or frame based systems with probabilistic models). Forexample, the SRL may employ Bayesian logic or Markov logic. For example,if there are two objects—‘asian male’ and ‘smartness’, they may beconnected using the relationship ‘Asian males are smart’. Thisrelationship may be given a weight (e.g., 0.3). This relationship mayvary from time to time (populations trend over years/decades). Byleveraging the knowledge in the semantic web (e.g., all references anddiscussions on the web where ‘blonde’ and ‘smartness’ are used andassociated) the degree of relationship may be interpreted from thesentiment of such references (e.g., positive sentiment: TRUE; negativesentiment: FALSE). Such sentiments and the volume of discussions maythen be transformed into weights. Accordingly, although the systemoriginally assigned a weight of 0.3, based on information from semanticweb about Asian males and smartness, may be revised to 0.9.

In an embodiment, Markov logic may be applied to the semantic web usingtwo objects: first-order formulae and their weights. The formulae may beacquired based on the semantics of the semantic web languages. In oneembodiment, the SRL may acquire the weights based on probability valuesspecified in ontologies. In another embodiment, where the ontologiescontain individuals, the individuals can be used to learn weights bygenerative learning. In some embodiments, the SRL may learn the weightsby matching and analyzing a predefined corpus of relevant objects and/ortextual resources. These techniques may be used to not only to obtainfirst-order waited formulae for clinical parameters, but also generalinformation. This information may then be used when making inferences.

For example, if the first order logic is ‘obesity causes hypertension,there are two objects involved: obesity and hypertension. If data onpatients with obesity and as to whether they were diagnosed withdiabetes or not is available, then the weights for this relationship maybe learnt from the data. This may be extended to non-clinical examplessuch as person's mood, beliefs etc.

The pattern recognizer may use the temporal dimension of data to learnrepresentations. The pattern recognizer may include a pattern storagesystem that exploits hierarchy and analytical abilities using ahierarchical network of nodes. The nodes may operate on the inputpatterns one at a time. For every input pattern, the node may provideone of three operations: 1. Storing patterns, 2. Learning transitionprobabilities, and 3. Context specific grouping.

A node may have a memory that stores patterns within the field of view.This memory may permanently store patterns and give each pattern adistinct label (e.g. a pattern number). Patterns that occur in the inputfield of view of the node may be compared with patterns that are alreadystored in the memory. If an identical pattern is not in the memory, thenthe input pattern may be added to the memory and given a distinctpattern number. The pattern number may be arbitrarily assigned and maynot reflect any properties of the pattern. In one embodiment, thepattern number may be encoded with one or more properties of thepattern.

In one embodiment, patterns may be stored in a node as rows of a matrix.In such an embodiment, C may represent a pattern memory matrix. In thepattern memory matrix, each row of C may be a different pattern. Thesedifferent patterns may be referred to as C-1, C-2, etc., depending onthe row in which the pattern is stored.

The nodes may construct and maintain a Markov graph. The Markov graphmay include vertices that correspond to the store patterns. Each vertexmay include a label of the pattern that it represents. As new patternsare added to the memory contents, the system may add new vertices to theMarkov graph. The system may also create a link between to vertices torepresent the number of transition events between the patternscorresponding to the vertices. For example, when an input pattern isfollowed by another input pattern j for the first time, a link may beintroduced between the vertices i and j and the number of transitionevents on that link may be set to 1. System may then increment thenumber of transition counts on the link from i and j whenever a patternfrom i to pattern j is observed. The system may normalize the Markovgraph such that the links estimate the probability of a transaction.Normalization may be achieved by dividing the number of transitionevents on the outgoing links of each vertex by the total number oftransition events from the vertex. This may be done for all vertices toobtain a normalized Markov graph. When normalization is completed, thesum of the transition probabilities for each node should add to 1. Thesystem may update the Markov graph continuously to reflect newprobability estimates.

The system may also perform context-specific grouping. To achieve this,the system may partition a set of vertices of the Markov graph into aset of temporal groups. Each temporal group may be a subset of that setof vertices of the Markov graph. The partitioning may be performed suchthat the vertices of the same temporal group are highly likely to followone another.

The node may use Hierarchical Clustering (HC) to for the temporalgroups. The HC algorithm may take a set of pattern labels and theirpair-wise similarity measurements as inputs to produce clusters ofpattern labels. The system may cluster the pattern labels such thatpatterns in the same cluster are similar to each other.

As data is fed into the pattern recognizer, the transition probabilitiesfor each pattern and pattern-of-patterns may be updated based on theMarkov graph. This may be achieved by updating the constructedtransition probability matrix. This may be done for each pattern inevery category of patterns. Those with higher probabilities may bechosen and placed in a separate column in the database called aprediction list.

Logical relationships among the patterns may be manually defined basedon the clinical relevance. This relationship is specified as first-orderlogic predicates along with probabilities. These probabilities may becalled beliefs. In one embodiment, a Bayesian Belief Network (BBN) maybe used to make predictions using these beliefs. The BBN may be used toobtain the probability of each occurrence. These logical relationshipsmay also be based on predicates stored the knowledge base.

The pattern recognizer may also perform optimization for thepredictions. In one embodiment, this may be accomplished by comparingthe predicted probability for a relationship with its actual occurrence.Then, the difference between the two may be calculated. This may be donefor p occurrences of the logic and fed into a K-means clusteringalgorithm to plot the Euclidean distance between the points. A centroidmay be obtained by the algorithm, forming the optimal increment to thedifference. This increment may then be added to the (p+1)th occurrence.Then, the process may be repeated. This may be done until the patternrecognizer predicts logical relationships up to a specified accuracythreshold. Then, the results may be considered optimal.

When a node is at the first level of the hierarchy, its input may comedirectly from the data source, or after some preprocessing. The input toa node at a higher-level may be the concatenation of the outputs of thenodes that are directly connected to it from a lower level. Patterns inhigher-level nodes may represent particular coincidences of their groupsof children. This input may be obtained as a probability distributionfunction (PDF). From this PDF, the probability that a particular groupis active may be calculated as the probability of the pattern that hasthe maximum likelihood among all the patterns belonging to that group.

The system can use an expert system that can assess hypertension inaccording with the guidelines. In addition, the expert system can usediagnostic information and apply the following rules to assesshypertension:

Hemoglobin/hematocrit: Assesses relationship of cells to fluid volume(viscosity) and may indicate risk factors such as hypercoagulability,anemia.

Blood urea nitrogen (BUN)/creatinine: Provides information about renalperfusion/function.

Glucose: Hyperglycemia (diabetes mellitus is a precipitator ofhypertension) may result from elevated catecholamine levels (increaseshypertension).

Serum potassium: Hypokalemia may indicate the presence of primaryaldosteronism (cause) or be a side effect of diuretic-therapy.

Serum calcium: Imbalance may contribute to hypertension.

Lipid panel (total lipids, high-density lipoprotein [HDL], low-densitylipoprotein [LDL], cholesterol, triglycerides, phospholipids): Elevatedlevel may indicate predisposition for/presence of atheromatous plaques.

Thyroid studies: Hyperthyroidism may lead or contribute tovasoconstriction and hypertension.

Serum/urine aldosterone level: May be done to assess for primaryaldosteronism (cause).

Urinalysis: May show blood, protein, or white blood cells; or glucosesuggests renal dysfunction and/or presence of diabetes.

Creatinine clearance: May be reduced, reflecting renal damage.

Urine vanillylmandelic acid (VMA) (catecholamine metabolite): Elevationmay indicate presence of pheochromocytoma (cause); 24-hour urine VMA maybe done for assessment of pheochromocytoma if hypertension isintermittent.

Uric acid: Hyperuricemia has been implicated as a risk factor for thedevelopment of hypertension.

Renin: Elevated in renovascular and malignant hypertension, salt-wastingdisorders.

Urine steroids: Elevation may indicate hyperadrenalism,pheochromocytoma, pituitary dysfunction, Cushing's syndrome.

Intravenous pyelogram (IVP): May identify cause of secondaryhypertension, e.g., renal parenchymal disease, renal/ureteral-calculi.

Kidney and renography nuclear scan: Evaluates renal status (TOD).

Excretory urography: May reveal renal atrophy, indicating chronic renaldisease.

Chest x-ray: May demonstrate obstructing calcification in valve areas;deposits in and/or notching of aorta; cardiac enlargement.

Computed tomography (CT) scan: Assesses for cerebral tumor, CVA, orencephalopathy or to rule out pheochromocytoma.

Electrocardiogram (ECG): May demonstrate enlarged heart, strainpatterns, conduction disturbances. Note: Broad, notched P wave is one ofthe earliest signs of hypertensive heart disease.

The system may also be adaptive. In one embodiment, every level has acapability to obtain feedback information from higher levels. Thisfeedback may inform about certain characteristics of informationtransmitted bottom-up through the network. Such a closed loop may beused to optimize each level's accuracy of inference as well as transmitmore relevant information from the next instance.

The system may learn and correct its operational efficiency over time.This process is known as the maturity process of the system. Thematurity process may include one or more of the following flow of steps:

a. Tracking patterns of input data and identifying predefined patterns(e.g. if the same pattern was observed several times earlier, thepattern would have already taken certain paths in the hierarchical nodestructure).

b. Scanning the possible data, other patterns (collectively called InputSets (IS)) required for those paths. It also may check for any feedbackthat has come from higher levels of hierarchy. This feedback may beeither positive or negative (e.g., the relevance of the informationtransmitted to the inferences at higher levels). Accordingly, the systemmay decide whether to send this pattern higher up the levels or not, andif so whether it should it send through a different path.

c. Checking for frequently required ISs and pick the top ‘F’ percentileof them.

d. Ensuring it keeps this data ready.

In one embodiment, information used at every node may act as agentsreporting on the status of a hierarchical network. These agents arereferred to as Information Entities (In En). In En may provide insightabout the respective inference operation, the input, and the resultwhich collectively is called knowledge.

This knowledge may be different from the KB. For example, the abovedescribed knowledge may include the dynamic creation of insights by thesystem based on its inference, whereas the KB may act as a reference forinference and/or analysis operations. The latter being an input toinference while the former is a product of inference. When thisknowledge is subscribed to by a consumer (e.g. administering system oranother node in a different layer) it is called “Knowledge-as-a-Service(KaaS)”

One embodiment processes behavior models are classified into fourcategories as follows:

a. Outcome-based;

b. Behavior-based;

c. Determinant-based; and

d. Intervention-based.

One or more of the following rules of thumb may be applied duringbehavioral modeling:

One or more interventions affect determinants;

One or more determinants affect behavior; and

One or more behaviors affect outcome.

A behavior is defined to be a characteristic of an individual or a grouptowards certain aspects of their life such as health, socialinteractions, etc. These characteristics are displayed as their attitudetowards such aspects. In analytical terms, a behavior can be consideredsimilar to a habit. Hence, a behavior may be observed POP™ for a givendata from a user. An example of a behavior is dietary habits.

Determinants may include causal factors for behaviors. They either causesomeone to exhibit the same behavior or cause behavior change. Certaindeterminants are quantitative but most are qualitative. Examples includeone's perception about a food, their beliefs, their confidence levels,etc.

Interventions are actions that affect determinants. Indirectly theyinfluence behaviors and hence outcomes. System may get both primary andsecondary sources of data. Primary sources may be directly reported bythe end-user and AU. Secondary data may be collected from sensors suchas their mobile phones, cameras, microphone, as well as those collectedfrom general sources such as the semantic web.

These data sources may inform the system about the respectiveinterventions. For example, to influence a determinant calledforgetfulness which relates to a behavior called medication, the systemsends a reminder at an appropriate time, as the intervention. Then,feedback is obtained whether the user took the medication or not. Thishelps the system in confirming if the intervention was effective.

The system may track a user's interactions and request feedback abouttheir experience through assessments. The system may use thisinformation as part of behavioral modeling to determine if the userinterface and the content delivery mechanism have a significant effecton behavior change with the user. The system may use this information tooptimize its user interface to make it more personalized over time tobest suit the users, as well as to best suit the desired outcome.

The system also may accommodate data obtained directly from theend-user, such as assessments, surveys, etc. This enables users to sharetheir views on interventions, their effectiveness, possible causes, etc.The system's understanding of the same aspects is obtained by way ofanalysis and service by the pattern recognizer.

Both system-perceived and end user-perceived measures of behavioralfactors may be used in a process called Perception Scoring (PS). In thisprocess, hybrid scores may be designed to accommodate both abovementioned aspects of behavioral factors. Belief is the measure ofconfidence the system has, when communicating or inferring oninformation. Initially higher beliefs may be set for user-perceivedmeasures.

Over time, as the system finds increasing patterns as well as obtainsfeedback in pattern recognizer, the system may evaluate theeffectiveness of intervention(s). If the system triggers an interventionbased on user-perceived measures and it doesn't have significant effecton the behavior change, the system may then start reducing its belieffor user-perceived measures and instead will increase its belief forsystem-perceived ones. In other words, the system starts believing lessin the user and starts believing more in itself. Eventually this reachesa stage where system can understand end-users and their behavioralhealth better than end-users themselves. When perception scoring is donefor each intervention, it may result in a score called InterventionEffectiveness Score (IES).

Perception scoring may be done for both end-users as well as AU. Suchscores may be included as part of behavior models during cause-effectanalysis.

Causes may be mapped with interventions, determinants, and behaviorrespectively in order of the relevance. Mapping causes withinterventions helps in back-tracking the respective AU for that cause.In simple terms, it may help in identifying whose actions have had apronounced effect on the end-user's outcome, by how much and using whichintervention. This is very useful in identifying AUs who are veryeffective with specific interventions as well as during certain eventcontext. Accordingly, they may be provided a score called AssociatedUser Influence Score. This encompasses information for a given end-user,considering all interventions and possible contexts relevant to theuser's case.

The system may construct one or plans including one or moreinterventions based on analysis performed, and may be implemented. Forexample, the system may analyze eligibility of an intervention for agiven scenario, evaluating eligibility of two or more interventionsbased on combinatorial effect, prioritizing interventions to be applied,based on occurrence of patterns (from pattern recognizer), and/orsubmitting an intervention plan to the user or doctor in a formatreadily usable for execution.

This system may rely on the cause-effect analysis for its planningoperations. A plan consists of interventions and a respectiveimplementation schedule. Every plan may have several versions based onthe users involved in it. For example, the system may have a separateversion for the physician as compared to a patient. They will in turn dothe task and report back to the system. This can be done either directlyor the system may indirectly find it based on whether a desired outcomewith the end user was observed or not.

The methodology may be predefined by an analyst. For every cause, whichcan be an intervention(s), determinant(s), behavior(s) or combinationsof the same, the analyst may specify one or more remedial actions. Thismay be specified from the causal perspective and not the contextualperspective.

Accordingly, the system may send a variety of data and information topattern recognizer and other services, as feedback, for these servicesto understand about the users. This understanding may affect their nextset of plans which in turn becomes an infinite cyclic system wheresystem affects the users while getting affected by them at the sametime. Such a system is called a reflexive-feedback enabled system. Thesystem may user both positive and negative reflexive-feedback, thoughthe negative feedback aspect may predominantly be used for identifyinggaps that the system needs to address.

The system may provide information, such as one or more newly identifiedpatterns, to an analyst (e.g., clinical analyst or doctor). In the usecase, the doctor may be presented with one or more notifications toaddress the relationship between carbohydrates and the medication thatthe patient is taking.

One embodiment of the system operation includes receiving feedbackrelating to the plan, and revising the plan based on the feedback; thefeedback being one or more patient behaviors that occur after the plan;the revised plan including one or more additional interventions selectedbased on the feedback; the one or more patient behaviors that occurafter the plan include a behavior transition; determining one or morepersons to associate with the identified intervention; automaticallyrevising probabilities from the collected information; storing therevised probabilities, wherein the revised probabilities are used todetermine the plan; and/or automatically make one or more inferencesbased on machine learning using one or more of the clinical information,behavior information, or personal information.

Hypertension metrics may be one type of metrics utilized within theprinciples of the present disclosure. A hypertension score can be basedon any type of alpha-numeric or visual analog scale. Hypertension scalesmay or may not be clinically validated and may use any scale (e.g.1-100, 1-10, 1-4), picture, symbol, color, character, number, sound,letter, or written description of hypertension to facilitate thecommunication of a patient's hypertension level. The type ofhypertension scale used may be determined according to a patient'sand/or healthcare provider's preferences, and may also be determinedbased on the needs of a patient including, for example, the patient'sage and/or communication capability. In further embodiments, theselected hypertension scale(s) may be determined by a service provider,such as, e.g., an organization implementing the principles of thepresent disclosure via a suitable software program or application.

Another metric may include a functionality score. A functionality scorecan be based on any type of alpha-numeric or visual analog scale.Non-limiting examples include the American Chronic Pain AssociationQuality of Life (ACPA QoL) Scale, Global Assessment of Functioning (GAF)Scale, and Short Form SF-36 Health Survey. Functionality scales may ormay not be clinically validated and may use any picture, symbol, color,character, number, sound, letter, written description of quality oflife, or physical functioning to facilitate communication of a patient'sfunctionality level. The functionality score may be, e.g., based on anassessment of a patient's ability to exercise as well as perform dailytasks and/or perform routine tasks such as, e.g., getting dressed,grocery shopping, cooking, cleaning, climbing stairs, etc. In someembodiments, the selected functionality scale(s) may be determined by aservice provider, such as, e.g., an organization implementing theprinciples of the present disclosure via a suitable software program orapplication.

A further metric may include a patient's medication usage. Medicationuse encompasses pharmacologic and therapeutic agents used to treat,control, and/or alleviate hypertension, including prescription drugs aswell as over-the-counter medications, therapeutic agents, and othernon-prescription agents. Medication use may include different classes ofpharmacologic agents. Medication use can be reported in any appropriateunits, such as number of doses taken, percentage of treatment plancompleted, frequency of doses, and/or dose strength; and may alsospecify additional information such as the type of formulation taken andthe route of administration (oral, enteral, topical, transdermal,parenteral, sublingual etc.). Molecular alternatives (e.g., acid, salt,solvate, complex, and pro-drug forms, etc.) and formulations (e.g.,solid, liquid, powder, gel, and suspensions, etc.) are furthercontemplated. Reported medication use may, for example, include thenumber of doses and types of medication taken since a previous reportedmedication use, and may also indicate the number of closes and types ofmedication taken within a period of time, such as within, the previous 2hours, 4 hours, 6 hours, 12 hours, 18 hours, 24 hours, 36 hours, or 48hours. In some embodiments, for example, medication use may be reportedin terms of dosage units recommended by a manufacturer or healthcareprovider for a given medication (e.g., minimum, maximum, or range ofappropriate unit dosage per unit time).

Reported medication use may allow for tracking compliance with atreatment regime. For example, a record of reported medication use mayassist a healthcare provider in evaluating medication efficacy,adjusting dosage, and/or adding other medications as necessary.

In some embodiments of the present disclosure, a patient or healthcareprovider may create a patient profile comprising, e.g., identifying,characterizing, and/or medical information, including information abouta patient's medical history, profession, and/or lifestyle. Furtherexamples of information that may be stored in a patient profile includesdiagnostic information such as family medical history, medical symptoms,duration of hypertension, localized vs. general hypertension, etc.Further contemplated as part of a patient profile are non-pharmacologictreatment(s) (e.g., chiropractic, radiation, holistic, psychological,acupuncture, etc.), lifestyle characteristics (e.g., diet, alcoholintake, smoking habits), cognitive condition, behavioral health, andsocial well-being.

A patient profile may, for example, be stored in a database andaccessible for analysis of the patient's reported hypertension metrics.In some embodiments, a patient profile may be created before collectingand/or transmitting a set of hypertension metrics to be received by aserver and/or database in other embodiments, a patient profile may becreated concurrently with, or even after transmitting/receiving one ormore hypertension metrics. In some embodiments a patient profile may beused to establish one or more hypertension metric e and/or referencevalues. A patient profile may, for example, allow for setting thresholdvalues or ranges, wherein reported hypertension metrics that falloutside of those limits trigger an alert to be sent to the patient or ahealthcare provider. Threshold values, limits, or ranges may also be setwithout reference to a patient profile. In some embodiments, one or moretarget value(s) (e.g., hypertension metric value(s)) may be set todetermine how the reported hypertension metrics compare with the targetvalue(s).

The methods and systems disclosed herein may rely on one or morealgorithm(s) to analyze one or more of the described metrics. Thealgorithm(s) may comprise analysis of data reported in real-time, andmay also analyze data reported in real-time in conjunction withauxiliary data stored in a hypertension management database. Suchauxiliary data may comprise, for example, historical patient data suchas previously-reported hypertension metrics (e.g., hypertension scores,functionality scores, medication use), personal medical history, and/orfamily medical history. In some embodiments, for example, the auxiliarydata includes at least one set of hypertension metrics previouslyreported and stored for a patient. In some embodiments, the auxiliarydata includes a patient profile such as, e.g., the patient profiledescribed above. Auxiliary data may also include statistical data, suchas hypertension metrics pooled for a plurality of patients within asimilar group or subgroup. Further, auxiliary data may include clinicalguidelines such as guidelines relating to hypertension management,including evidence-based clinical practice guidelines on the managementof acute and/or chronic hypertension or other chronic conditions.

Analysis of a set of hypertension metrics according to the presentdisclosure may allow for calibration of the level, degree, and/orquality of hypertension experienced by providing greater context topatient-reported data. For example, associating a hypertension score of7 out of 10 with high functionality for a first patient, and the samescore with low functionality for a second patient may indicate arelatively greater debilitating effect of hypertension on the secondpatient than the first patient. Further, a high hypertension scorereported by a patient taking a particular medication such as opioidanalgesics may indicate a need to adjust the patient's treatment plan.Further, the methods and systems disclosed herein may provide a means ofassessing relative changes in a patient's distress due to hypertensionover time. For example, a hypertension score of 5 out of 10 for apatient who previously reported consistently lower hypertension scores,e.g., 1 out of 10, may indicate a serious issue requiring immediatemedical attention.

Any combination(s) of hypertension metrics may be used for analysis inthe systems and methods disclosed. In some embodiments, for example, theset of hypertension metrics comprises at least one hypertension scoreand at least one functionality score. In other embodiments, the set ofhypertension metrics may comprise at least one hypertension score, atleast one functionality score, and medication use. More than one set ofhypertension metrics may be reported and analyzed at a given time. Forexample, a first set of hypertension metrics recording a patient'scurrent status and a second set of hypertension metrics recording thepatient's status at an earlier time may both be analyzed and may also beused to generate one or more recommended actions.

Each hypertension metric may be given equal weight in the analysis, ormay also be given greater or less weight than other hypertension metricsincluded in the analysis. For example, a functionality score may begiven greater or less weight with respect to a hypertension score and/ormedication use. Whether and/or how to weigh a given hypertension metricmay be determined according to the characteristics or needs of aparticular patient. As an example, Patient A reports a hypertensionscore of 8 (on a scale of 1 to 10 where 10 is the most severehypertension) and a functionality score of 9 (on a scale of 1 to 10where 10 is highest functioning), while Patient B reports a hypertensionscore of 8 but a functionality score of 4. The present disclosureprovides for the collection, analysis, and reporting of thisinformation, taking into account the differential impact of onehypertension score on a patient's functionality versus that samehypertension score's impact on the functionality of a different patient.

Hypertension metrics may undergo a pre-analysis before inclusion in aset of hypertension metrics and subsequent application of one or morealgorithms. For example, a raw score may be converted or scaledaccording to one or more algorithm(s) developed for a particularpatient. In some embodiments, for example, a non-numerical raw score maybe converted to a numerical score or otherwise quantified prior to theapplication of one or more algorithms. Patients and healthcare providersmay retain access to raw data (e.g., hypertension metric data prior toany analysis)

Algorithm(s) according, to the present disclosure may analyze the set ofhypertension metrics according to any suitable methods known in the art.Analysis may comprise, for example, calculation of statistical averages,pattern recognition, application of mathematical models, factoranalysis, correlation, and/or regression analysis. Examples of analysesthat may be used herein include, but are not limited to, those disclosedin U.S. Patent Application Publication No. 2012/0246102 A1 the entiretyof which is incorporated herein by reference.

The present disclosure further provides for the determination of anaggregated hypertension assessment score. In some embodiments, forexample, a set of pairs metrics may be analyzed to generate acomprehensive and/or individualized assessment of hypertension bygenerating a composite or aggregated score. In such embodiments, theaggregated score may include a combination of at least one hypertensionscore, at least one functionality score, and medication use. Additionalmetrics may also be included in the aggregated score. Such metrics mayinclude, but are not limited to, exercise habits, mental well-being,depression, cognitive functioning, medication side effects, etc. Any ofthe aforementioned types of analyses may be used in determining anaggregated score.

The algorithm(s) may include a software program that may be availablefor download to an input device in various versions. In someembodiments, for example, the algorithm(s) may be directly downloadedthrough the Internet or other suitable communications means to providethe capability to troubleshoot a health issue in real-time. Thealgorithm(s) may also be periodically updated, e.g., provided contentchanges, and may also be made available for download to an input device.

The methods presently disclosed may provide a healthcare provider with amore complete record of a patient's day-to-day status. By having accessto a consistent data stream of hypertension metrics for a patient, ahealthcare provider may be able to provide the patient with timelyadvice and real-time coaching on hypertension management options andsolutions. A patient may, for example, seek and/or receive feedback onhypertension management without waiting for an upcoming appointment witha healthcare provider or scheduling a new appointment. Such real-timecommunication capability may be especially beneficial to providepatients with guidance and treatment options during intervals betweenappointments with a healthcare provider. Healthcare providers may alsobe able to monitor a patient's status between appointments to timelyinitiate, modify, or terminate a treatment plan as necessary. Forexample, a patient's reported medication use may convey whether thepatient is taking too little or too much medication. In someembodiments, an alert may be triggered to notify the patient and/or ahealthcare provider of the amount of medication taken, e.g., incomparison to a prescribed treatment plan. The healthcare providercould, for example, contact the patient to discuss the treatment plan.The methods disclosed herein may also provide a healthcare provider witha longitudinal review of how a patient responds to hypertension overtime. For example, a healthcare provider may be able to determinewhether a given treatment plan adequately addresses a patient's needsbased on review of the patient's reported hypertension metrics andanalysis thereof according to the present disclosure.

Analysis of patient data according to the methods presently disclosedmay generate one or more recommended actions that may be transmitted anddisplayed on an output device. In some embodiments, the analysisrecommends that a patient make no changes to his/her treatment plan orroutine. In other embodiments, the analysis generates a recommendationthat the patient seek further consultation with a healthcare providerand/or establish compliance with a prescribed treatment plan. In otherembodiments, the analysis may encourage a patient to seek immediatemedical attention. For example, the analysis may generate an alert to betransmitted to one or more output devices, e.g., a first output devicebelonging to the patient and a second output device belonging to ahealthcare provider, indicating that the patient is in need of immediatemedical treatment. In some embodiments, the analysis may not generate arecommended action. Other recommended actions consistent with thepresent disclosure may be contemplated and suitable according to thetreatment plans, needs, and/or preferences for a given patient.

The present disclosure further provides a means for monitoring apatient's medication use to determine when his/her prescription will runout and require a refill. For example, a patient profile may be createdthat indicates a prescribed dosage and frequency of administration, aswell as total number of dosages provided in a single prescription. Asthe patient reports medication use, those hypertension metrics may betransmitted to a server and stored in a database in connection with thepatient profile. The patient profile stored on the database may thuscontinually update with each added metric and generate a notification toindicate when the prescription will run out based on the reportedmedication use. The notification may be transmitted and displayed on oneor more output devices, e.g., to a patient and/or one or more healthcareproviders. In some embodiments, the one or more healthcare providers mayinclude a pharmacist. For example, a pharmacist may receive notificationof the anticipated date a prescription will run out in order to ensurethat the prescription may be timely refilled.

Patient data can be input for analysis according to the systemsdisclosed herein through any data-enabled device including, but notlimited to, portable/mobile and stationary communication devices, andportable/mobile and stationary computing devices. Non-limiting examplesof input devices suitable for the systems disclosed herein include smartphones, cell phones, laptop computers, netbooks, personal computers(PCs), tablet PCs, fax machines, personal digital assistants, and/orpersonal medical devices. The user interface of the input device may beweb-based, such as a web page, or may also be a stand-alone application.Input devices may provide access to software applications via mobile andwireless platforms, and may also include web-based applications.

The input device may receive data by having a user, including, but notlimited to, a patient, family member, friend, guardian, representative,healthcare provider, and/or caregiver, enter particular information viaa user interface, such as by typing and/or speaking. In someembodiments, a server may send a request for particular information tobe entered by the user via an input device. For example, an input devicemay prompt a user to enter sequentially a set of hypertension metrics,e.g., a hypertension score, a functionality score, and informationregarding use of one or more medications (e.g., type of medication,dosage taken, time of day, route of administration, etc.). In otherembodiments, the user may enter data into the input device without firstreceiving a prompt. For example, the user may initiate an application orweb-based software program and select an option to enter one or morehypertension metrics. In some embodiments, one or more hypertensionscales and/or functionality scales may be preselected by the applicationor software program. For example, a user may have the option ofselecting the type of hypertension scale and/or functionality scale forreporting hypertension metrics within the application or softwareprogram. In other embodiments, an application or software program maynot include preselected hypertension scales or functionality scales suchthat a user can employ any hypertension scale and/or functionality scaleof choice.

The user interface of an input device may allow a user to associatehypertension metrics with a particular date and/or time of day. Forexample, a user may report one or more hypertension metrics to reflect apatient's present status. A user may also report one or morehypertension metrics to reflect a patient's status at an earlier time.

Patient data may be electronically transmitted from an input device overa wired or wireless medium to a server, e.g., a remote server. Theserver may provide access to a database for performing an analysis ofthe data transmitted, e.g., set of hypertension metrics. The databasemay comprise auxiliary data for use in the analysis as described above.In some embodiments, the analysis may be automated, and may also becapable of providing real-time feedback to patients and/or healthcareproviders.

The analysis may generate one or more recommended actions, and maytransmit the recommended action(s) over at wired or wireless medium fordisplay on at least one output device. The at least one output devicemay include, e.g., portable/mobile and stationary communication devices,and portable/mobile and stationary computing devices. Non-limitingexamples of output devices suitable for the systems disclosed hereininclude smart phones, cell phones, laptop computers, netbooks, personalcomputers (PCs), tablet PCs, fax machines, personal digital assistants,and/or personal medical devices. In some embodiments, the input deviceis the at least one output device. In other embodiments, the inputdevice is one of multiple output devices. In some embodiments of thepresent disclosure, the one or more recommended actions are transmittedand displayed on each of two output devices. In such an example, oneoutput device may belong to a patient and the other device may belong toa healthcare provider.

The present disclosure also contemplates methods and systems in alanguage suitable for communicating with the patient and/or healthcareprovider, including languages other than English.

A patient's medical data may be subject to confidentiality regulationsand protection. Transmitting, analyzing, and/or storing informationaccording to the methods and systems disclosed herein may beaccomplished through secure means, including HIPPA-compliant proceduresand use of password-protected devices, servers, and databases.

The systems and methods presently disclosed may be especially beneficialin outpatient, home, and/or on-the-go settings. The systems and methodsdisclosed herein may also be used as an inpatient tool and/or incontrolled medication administration such as developing a personalizedtreatment plan.

In addition to monitoring health parameters, the system can includeinterventional devices such as a defibrillator. The defibrillatorfunction is enabled by providing electrical energy of a selectedenergy/power level/voltage/current level or intensity delivered for aselected duration upon sensing certain patterns of undesirable heartactivity wherein said undesirable heart activity necessitates anexternal delivery of a controlled electrical energy pulse forstimulating a selected heart activity. The defibrillator function isenabled by an intelligent defibrillator appliance that operates in amanner similar to the functions of an intelligent ECG appliance with theadditional capability of providing external electrical stimuli via forexample a wireless contact system pasted on various locations of thetorso. The electrical stimuli are delivered in conjunction with theintelligent defibrillator device or the mobile device performing theadditional functions of an intelligent defibrillator appliance. Thecontrol actions for providing real time stimuli to the heart ofelectrical pulses, is enabled by the intelligent defibrillator applianceby itself or in conjunction with an external server/intelligentappliance where the protocols appropriate for the specific individualare resident. The defibrillation actions are controlled in conjunctionwith the real time ECG data for providing a comprehensive real-timesolution to the individual suffering from abnormal or life-threateningheart activity/myocardial infraction. Additionally, by continuouslywearing the paste on wireless contacts that can provide the electricalimpulse needed, the individual is instantaneously able to get real timeattention/action using a specifically designed wearable intelligentdefibrillator appliance or a combination of an intelligent ECG plusdefibrillator appliance. Further the mobile device such as a cellulartelephone or other wearable mobile devices can be configured with theappropriate power sources and the software for performing the additionalfunctions of an intelligent defibrillator appliance specificallytailored to the individual.

The cellular telephone/mobile device can receive signals from the ECGmachine/appliance or as an intermediary device that transmits/receivesthe ECG data and results from a stationary or portable ECG appliance.The ability of the individual to obtain an ECG profile of the heart at aselected time and in a selected location is critical to getting timelyattention and for survival. Getting attention within 10 to 20 minutes ofa heart attack is crucial beyond that the chances for survival diminishsignificantly. The smart phone helps the patient to quickly communicatehis/her location and or discover the location of the nearest health carefacility that has the requisite cardiac care facilities and otherfacilities. The mobile device that the individual is carrying on theperson is enabled to provide the exact location of the individual inconjunction with the global positioning system. In addition, the systemis enabled to provide the directions and estimated travel time to/fromthe health care facility to the specific mobile device/individual.

Yet other intervention can include music, image, or video. The music canbe synchronized with respect to a blood pulse rate in one embodiment,and in other embodiments to biorhythmic signal—either to match thebiorhythmic signal, or, if the signal is too fast or too slow, to goslightly slower or faster than the signal, respectively. In order toentrain the user's breathing, a basic melody is preferably played whichcan be easily identified by almost all users as corresponding to aparticular phase of respiration. On top of the basic melody, additionallayers are typically added to make the music more interesting, to theextent required by the current breathing rate, as described hereinabove.Typically, the basic melody corresponding to this breathing includesmusical cords, played continuously by the appropriate instrument duringeach phase. For some applications, it is desirable to elongate slightlythe length of one of the respiratory phases, typically, the expirationphase. For example, to achieve respiration which is 70% expiration and30% inspiration, a musical composition written for an E:I ratio of 2:1may be played, but the expiration phase is extended by asubstantially-unnoticed 16%, so as to produce the desired respirationtiming. The expiration phase is typically extended either by slowingdown the tempo of the notes therein, or by extending the durations ofsome or all of the notes.

Although music for entraining breathing is described hereinabove asincluding two phases, it will be appreciated by persons skilled in theart that the music may similarly include other numbers of phases, asappropriate. For example, user may be guided towards breathing accordingto a 1:2:1:3 pattern, corresponding to inspiration, breath holding(widely used in Yoga), expiration, and post-expiratory pause (reststate).

In one embodiment, the volume of one or more of the layers is modulatedresponsive to a respiration characteristic (e.g., inhalation depth, orforce), so as to direct the user to change the characteristic, or simplyto enhance the user's connection to the music by reflecting therein therespiration characteristic. Alternatively, or additionally, parametersof the sound by each of the musical instruments may be varied toincrease the user's enjoyment. For example, during slow breathing,people tend to prefer to hear sound patterns that have smootherstructures than during fast breathing and/or aerobic exercise.

Further alternatively or additionally, random musical patterns and/ordigitized natural sounds (e.g., sounds of the ocean, rain, or wind) areadded as a decoration layer, especially for applications which directthe user into very slow breathing patterns. The inventor has found thatduring very slow breathing, it is desirable to remove the user's focusfrom temporal structures, particularly during expiration.

Still further alternatively or additionally, the server maintains amusical library, to enable the user to download appropriate music and/ormusic-generating patterns from the Internet into device. Often, as auser's health improves, the music protocols which were initially storedin the device are no longer optimal, so the user downloads the newprotocols, by means of which music is generated that is more suitablefor his new breathing training. The following can be done:

obtaining clinical data from one or more laboratory test equipment andchecking the data on a blockchain;

obtaining genetic clinical data from one or more genomic equipment andstoring genetic markers in the EMR/HER including germ line data andsomatic data over time;

obtaining clinical data from a primary care or a specialist physiciandatabase; obtaining clinical data from an in-patient care database orfrom an emergency room database;

saving the clinical data into a clinical data repository; obtaininghealth data from fitness devices or from mobile phones;

obtaining behavioral data from social network communications and mobiledevice usage patterns;

saving the health data and behavioral data into a health data repositoryseparate from the clinical data repository; and providing a decisionsupport system (DSS) to apply genetic clinical data to the subject, andin case of an adverse event for a drug or treatment, generating a drugsafety signal to alert a doctor or a manufacturer, wherein the DSSincludes rule-based alerts on pharmacogenetics, oncology drug regimens,wherein the DSS performs ongoing monitoring of actionable geneticvariants.

FIG. 7E illustrates one embodiment of a system for collaborativelytreating a patient with eye injury. In this embodiment, a treatingphysician/doctor logs into a consultation system 1 and initiates theprocess by clicking on “Create New Case” (500). Next, the systempresents the doctor with a “New Case Wizard” which provides a simple,guided set of steps to allow the doctor to fill out an “InitialAssessment” form (501). The doctor may enter Patient or SubjectInformation (502), enter Initial Assessment of patient/case (504),upload Test Results, Subject Photographs and X-Rays (506), acceptPayment and Service Terms and Conditions (508), review Summary of Case(510), or submit Forms to a AI machine based “consultant” such as aHearing Service AI Provider (512). Other clinical information for thecancer subject includes the imaging or medical procedure directedtowards the specific disease that one of ordinary skill in the art canreadily identify. The list of appropriate sources of clinicalinformation for cancer includes but it is not limited to: CT scan, Millscan, ultrasound scan, bone scan, PET Scan, bone marrow test, bariumX-ray, endoscopy, lymphangiogram, IVU (Intravenous urogram) or IVP (IVpyelogram), lumbar puncture, cystoscopy, immunological tests(anti-malignant antibody screen), and cancer marker tests.

After the case has been submitted, the AI Machine Consultant can loginto the system 1 and consult/process the case (520). Using the TreatingDoctors Initial Assessment and Photos/X-Rays, the Consultant will clickon “Case Consultation” to initiate the “Case Consultation Wizard” (522).The consultant can fill out the “Consultant Record Analysis” form (524).The consultant can also complete the “Prescription Form” (526) andsubmit completed forms to the original Treating Doctor (528). Once thecase forms have been completed by the Consulting Doctor, the TreatingDoctor can access the completed forms using the system. The TreatingDoctor can either accept the consultation results (i.e. a pre-filledPrescription form) or use an integrated messaging system to communicatewith the Consultant (530). The Treating Doctor can log into the system(532), click on Patient Name to review (534), review the ConsultationResults (Summary Letter and pre-filled Prescription Form) (536). Ifsatisfied, the Treating Doctor can click “Approve Treatment” (538), andthis will mark the case as having being approved (540). The TreatingDoctor will be able to print a copy of the Prescription Form and theSummary Letter for submission to hearing aid manufacturer or provider(542). Alternatively, if not satisfied, the Treating Doctor can initiatea computer dialog with the Consultant by clicking “Send a Message”(544). The Treating Doctor will be presented with the “Send a Message”screen where a message about the case under consultation can be written(546). After writing a message, the Treating Doctor would click “Submit”to send the message to the appropriate Consultant (548). The Consultantwill then be able to reply to the Treating Doctor's Message and send amessage/reply back to the Treating Doctor (550).

A permissioned blockchain can be used to share sensitive medical datawith different authorized institutions. The institutions are trustedparties and vouched for by the trusted pont. A Patient-ProviderRelationship (PPR) Smart Contract is issued when one node from a trustedinstitution stores and manages medical records for the patient. The PPRdefines an assortment of data pointers and associated access permissionsthat identify the records held by the care provider. Each pointerconsists of a query string that, when executed on the provider'sdatabase, returns a subset of patient data. The query string is affixedwith the hash of this data subset, to guarantee that data have not beenaltered at the source. Additional information indicates where theprovider's database can be accessed in the network, i.e. hostname andport in a standard network topology. The data queries and theirassociated information are crafted by the care provider and modifiedwhen new records are added. To enable patients to share records withothers, a dictionary implementation (hash table) maps viewers' addressesto a list of additional query strings. Each string can specify a portionof the patient's data to which the third party viewer is allowed access.For SQL data queries, a provider references the patient's data with aSELECT query on the patient's address. For patients uses an interfacethat allows them to check off fields they wish to share through agraphical interface. The system formulates the appropriate SQL queriesand uploads them to the PPR on the blockchain.

In one embodiment, the transaction 303 includes the recipient's address324 (e.g., a hash value based on the receiver's public key), theBlockchain token 309 (i.e., a patient ID 328 and personally identifiableinformation such as Social Security 326), past medical institutionrelationship information 331 (if any), and optional other information310. The transaction 323 is digitally signed by the patient who is thesender's private key to create a digital signature 332 for verifying thesender's identity to the network nodes. The network nodes decrypt thedigital signature 332, via the sender's previously exchanged public key,and compare the unencrypted information to the transaction 323. If theymatch, the sender's authenticity is verified and, after a proper chainof ownership is verified via the ledgers (as explained above), thereceiver is recorded in the ledgers as the new Blockchain token 329authorized owner of the medical information. Block 328 of FIG. 13G canpoint to off-chain storage warehouses containing the patient's medicalhistory so that the current owner (or all prior owners) can access thepatient medical information for treatment. Further, the information canbe segmented according to need. This way, if a medication such ascannabis that requires the patient to be an adult, the system can bequeried only to the information needed (such as is this patient anadult) and the system can respond only as to the query and there is noneed to send other question (in the adult age example, the systemreplies only adult or not and does not send the birthday to theinquiring system).

In another embodiment, the system includes two look up tables, a globalregistration look up table (GRLT) where all participants (medicalinstitutions and patients) are recorded with name or identity string,blockchain address for the smart contract, and Patient-Provider lookuptable (PPLT). This is maintained by a trusted host authority such as agovernment health authority or a government payor authority. Oneembodiment maps participant identification strings to their blockchainaddress or Ethereum address identity (equivalent to a public key). Termsin the smart contract can regulate registering new identities orchanging the mapping of existing ones. Identity registration can thus berestricted only to certified institutions. The PPLT maps identitystrings to an address on the blockchain.

Patients can poll their PPLT and be notified whenever a new relationshipis suggested or an update is available. Patients can accept, reject ordelete relationships, deciding which records in their history theyacknowledge. The accepting or rejecting relationships is done only bythe patients. To avoid notification spamming from maliciousparticipants, only trusted providers can update the status variable.Other contract terms or rules can specify additional verifications toconfirm proper actor behavior.

When Provider 1 adds a record for a new patient, using the GRLT on theblockchain, the patient's identifying information is first resolved totheir matching Ethereum address and the corresponding PPLT is located.Provider 1 uses a cached GRLT table to look up any existing records ofthe patient in the PPLT. For all matching PPLTs, Provider 1 broadcasts asmart contract requesting patient information to all matching PPLTentries. If the cache did not produce a result for the patient identitystring or blockchain address, Provider 1 can send a broadcast requestinginstitutions who handles the patient identity string or the blockchainaddress to all providers. Eventually, Provider 2 responds with itsaddresses. Provider 2 may insert an entry for Provider 1 into itsaddress resolution table for future use. Provider 1 caches the responseinformation in its table and can now pull information from Provider 2and/or supplement the information known to Provider 2 with hashedaddresses to storage areas controlled by Provider 1.

Next, the provider uploads a new PPR to the blockchain, indicating theirstewardship of the data owned by the patient's Ethereum address. Theprovider node then crafts a query to reference this data and updates thePPR accordingly. Finally, the node sends a transaction which links thenew PPR to the patient's PPLT, allowing the patient node to later locateit on the blockchain.

A Database Gatekeeper provides an off-chain, access interface to thetrusted provider node's local database, governed by permissions storedon the blockchain. The Gatekeeper runs a server listening to queryrequests from clients on the network. A request contains a query string,as well as a reference to the blockchain PPR that warrants permissionsto run it. The request is cryptographically signed by the issuer,allowing the gatekeeper to confirm identities. Once the issuer'ssignature is certified, the gatekeeper checks the blockchain contractsto verify if the address issuing the request is allowed access to thequery. If the address checks out, it runs the query on the node's localdatabase and returns the result over to the client.

A patient selects data to share and updates the corresponding PPR withthe third-party address and query string. If necessary, the patient'snode can resolve the third party address using the GRLT on theblockchain. Then, the patient node links their existing PPR with thecare provider to the third-party's Summary Contract. The third party isautomatically notified of new permissions, and can follow the link todiscover all information needed for retrieval. The provider's DatabaseGatekeeper will permit access to such a request, corroborating that itwas issued by the patient on the PPR they share.

In one embodiment that handles persons without previous blockchainhistory, admitting procedures are performed where the person's personaldata is recorded and entered into the blockchain system. This data mayinclude: name, address, home and work telephone number, date of birth,place of employment, occupation, emergency contact information,insurance coverage, reason for hospitalization, allergies to medicationsor foods, and religious preference, including whether or not one wishesa clergy member to visit, among others. Additional information mayinclude past hospitalizations and surgeries, advance directives such asa living will and a durable power to attorney. During the time spent inadmitting, a plastic bracelet will be placed on the person's wrist withtheir name, age, date of birth, room number, and blockchain medicalrecord reference on it.

The above system can be used to connect the blockchain with differentEHR systems at each point of care setting. Any time a patient isregistered into a point of care setting, the EHR system sends a messageto the GRLT to identify the patient if possible. In our example, PatientA is in registration at a particular hospital. The PPLT is used toidentify Patient A as belonging to a particular plan. The smartcontracts in the blockchain automatically updates Patient A′s care plan.The blockchain adds a recommendation to put Patient A by looking at thecomplete history of treatments by all providers and optimizes treat. Forexample, the system can recommend the patient be enrolled in a weightloss program after noticing that the patient was treated for sedentarylifestyle, had history of hypertension, and the family history indicatesa potential heart problem. The blockchain data can be used forpredictive analytics, allowing patients to learn from their familyhistories, past care and conditions to better prepare for healthcareneeds in the future. Machine learning and data analysis layers can beadded to repositories of healthcare data to enable a true “learninghealth system” can support an additional analytics layer for diseasesurveillance and epidemiological monitoring, physician alerts ifpatients repeatedly fill and abuse prescription access.

In one embodiment, an IOT medical device captures patient data in thehospital and automatically communicates data to a hospital database thatcan be shared with other institutions or doctors. First, the patient IDand blockchain address is retrieved from the patient's wallet and themedical device attaches the blockchain address in a field, along withother fields receiving patient data. Patient data is then stored in ahospital database marked with the blockchain address and annotated by amedical professional with interpretative notes. The notes are affiliatedwith the medical professional's blockchain address and the PPR blockchain address. A professional can also set up the contract termsdefining a workflow. For example, if the device is a blood pressuredevice, the smart contract can have terms that specify dietaryrestrictions if the patient is diabetic and the blood pressure isborderline and food dispensing machines only show items with low saltand low calorie, for example.

The transaction data may consist of a Colored Coin implementation(described in more detail at https://en.bitcoin.it/wiki/Colored Coinswhich is incorporated herein by reference), based on Open Assets(described in more detail athttps://github.com/OpenAssets/open-assets-protocol/blob/master/specification.mediawikiwhich is incorporated herein by reference), using on the OP RETURNoperator. Metadata is linked from the Blockchain and stored on the web,dereferenced by resource identifiers and distributed on public torrentfiles. The colored coin specification provides a method fordecentralized management of digital assets and smart contracts(described in more detail athttps://github.com/ethereum/wiki/wiki/White-Paper which is incorporatedherein by reference.) For our purposes the smart contract is defined asan event-driven computer program, with state, that runs on a blockchainand can manipulate assets on the blockchain. So a smart contract isimplemented in the blockchain scripting language in order to enforce(validate inputs) the terms (script code) of the contract.

Patient Behavior and Risk Pool Rated Health Plans With the advent ofpersonal health trackers, new health plans are rewarding consumers fortaking an active part in their wellness. The system facilitates opendistribution of the consumers wellness data and protect it as PHR mustbe, and therefore prevent lock-in of consumers, providers and payers toa particular device technology or health plan. In particular, since PHRdata is managed on the blockchain a consumer and/or company can grantaccess to a payer to this data such that the payer can perform groupanalysis of an individual or an entire company's employee base includingindividual wellness data and generate a risk score of the individualand/or organization. Having this information, payers can then bid oninsurance plans tailored for the specific organization. Enrollment then,also being managed on the blockchain, can become a real-time arbitrageprocess. The pseudo code for the smart contract to implement a patientbehavior based health plan is as follows.

store mobile fitness data

store consumer data in keys with phr_info, claim_info, enrollment_info

for each consumer:

add up all calculated risk for the consumer

determine risk score based on mobile fitness data

update health plan cost based on patient behavior

Patient and Provider Data Sharing

A patient's Health BlockChain wallet stores all assets, which in turnstore reference ids to the actual data, whether clinical documents inHL7 or FHIR format, wellness metrics of activity and sleep patterns, orclaims and enrollment information. These assets and control of grants ofaccess to them is afforded to the patient alone. A participatingprovider can be given full or partial access to the data instantaneouslyand automatically via enforceable restrictions on smart contracts.

Utilizing the Health BlockChain the access to a patient's PHR can begranted as part of scheduling an appointment, during a referraltransaction or upon arrival for the visit. And, access can just aseasily be removed, all under control of the patient.

Upon arrival at the doctor's office, an application automatically logsinto a trusted provider's wireless network. The app is configured toautomatically notify the provider's office of arrival and grant accessto the patient's PHR. At this point the attending physician will haveaccess to the patient's entire health history. The pseudo code for thesmart contract to implement a patient and provider data sharing is asfollows.

Patient download apps and provide login credential and logs into theprovider wireless network

Patient verifies that the provider wireless network belongs to a patienttrusted provider list

Upon entering provider premise, system automatically logs in and grantsaccess to provider

Patient check in data is automatically communicated with provider systemto provide PHR

Provider system synchronizes files and obtain new updates to the patientPHR and flags changes to provider.

Patient Data Sharing

Patient's PHR data is valuable information for their personal healthprofile in order to provide Providers (Physicians) the necessaryinformation for optimal health care delivery. In addition this clinicaldata is also valuable in an aggregate scenario of clinical studies wherethis information is analyzed for diagnosis, treatment and outcome.Currently this information is difficult to obtain due to the siloedstorage of the information and the difficulty on obtaining patientpermissions.

Given a patient Health BlockChain wallet that stores all assets asreference ids to the actual data. These assets can be included in anautomated smart contract for clinical study participation or any otherdata sharing agreement allowed by the patient. The assets can be sharedas an instance share by adding to the document a randomized identifieror nonce, similar to a one-time use watermark or serial number, a uniqueasset (derived from the original source) is then generated for aparticular access request and included in a smart contract as an inputfor a particular request for the patient's health record information. Apatient can specify their acceptable terms to the smart contractregarding payment for access to PHR, timeframes for acceptable access,type of PHR data to share, length of history willing to be shared,de-identification thresholds or preferences, specific attributes of theconsumer of the data regarding trusted attributes such as reputation,affiliation, purpose, or any other constraints required by the patient.Attributes of the patient's data are also advertised and summarized asproperties of the smart contract regarding the type of diagnosis andtreatments available. Once the patient has advertised their willingnessto share data under certain conditions specified by the smart contractit can automatically be satisfied by any consumer satisfying the termsof the patient and their relevance to the type of PHR needed resultingin a automated, efficient and distributed means for clinical studies toconsume relevant PHR for analysis. This process provides an automatedexecution over the Health BlockChain for any desired time period thatwill terminate at an acceptable statistical outcome of the requiredattained significance level or financial limit. The pseudo code for thesmart contract to implement automated patient data sharing is asfollows.

Patient download apps and provide login credential and logs into theclinical trial provider wireless network

Patient verifies that the provider wireless network belongs to a patienttrusted provider list

Upon entering provider premise, system automatically logs in and grantsaccess to provider

Patient check in data is automatically communicated with provider systemto provide clinical trial data

In one embodiment, a blockchain entry is added for each touchpoint ofthe medication as it goes through the supply chain from manufacturingwhere the prescription package serialized numerical identification (SNI)is sent to wholesalers who scan and record the SM and location and thento distributors, repackagers, and pharmacies, where the SM/location datais recorded at each touchpoint and put on the blockchain. The medicationcan be scanned individually, or alternatively can be scanned in bulk.Further, for bulk shipments with temperature and shock sensors for thebulk package, temperature/shock data is captured with the shipment orstorage of the medication.

A smart contract assesses against product supply chain rule and cancause automated acceptance or rejection as the medication goes througheach supply chain touchpoint. The process includes identifying aprescription drugs by query of a database system authorized to track andtrace prescription drugs or similar means for the purpose of monitoringthe movements and sale of pharmaceutical products through a supplychain; a.k.a. e-pedigree trail; serialized numerical identification(SNI), stock keeping units (SKU), point of sale system (POS), systemsetc. in order to compare the information; e.g. drug name, manufacturer,etc. to the drug identified by the track and trace system and to ensurethat it is the same drug and manufacturer of origin. The process canverify authenticity and check pedigree which can be conducted at anypoint along the prescription drug supply chain; e.g. wholesaler,distributor, doctor's office, pharmacy. The most optimal point forexecution of this process would be where regulatory authorities view thegreatest vulnerability to the supply chain's integrity. For example,this examination process could occur in pharmacy operations prior tocontainerization and distribution to the pharmacy for dispensing topatients.

An authenticated prescription drug with verified drug pedigree trail canbe used to render an informational object, which for the purpose ofillustration will be represented but not be limited to a unique mark;e.g. QR Code, Barcode, Watermark, Stealth Dots, Seal or 2 Dimensionalgraphical symbol, hereinafter called a certificate, seal, or mark. Anexemplary embodiment for use of said certificate, mark, or seal can beused by authorized entities as a warrant of the prescription drug'sauthenticity and pedigree. For example, when this seal is appended to aprescription vial presented to a patient by a licensed pharmacy, itwould represent the prescription drug has gone through an authenticationand logistics validation process authorized by a regulatory agency (s);e.g. HHS, FDA, NABP, VIPP, etc. An exemplary embodiment for use of saidcertificate, mark or seal would be analogous to that of the functioningfeatures, marks, seals, and distinguishing characteristics thatcurrently authenticate paper money and further make it difficult tocounterfeit. Furthermore, authorized agents utilizing the certificateprocess would be analogous to banks participating in the FDIC program.

A user; e.g. patient equipped with the appropriate application on aportable or handheld device can scan the certificate, mark or seal andreceive an audible and visible confirmation of the prescription drug'sname, and manufacturer. This will constitute a confirmation of theauthenticity of the dispensed prescription drug. Extensible use of thecertificate, mark, or seal will include but not be limited to; gainingaccess to website (s) where additional information or interactivefunctions can be performed; e.g. audible narration of the drug'scharacteristics and physical property descriptions, dosing, information,and publications, etc. A user; e.g. patient equipped with theappropriate application on a portable or handheld device can scan thecertificate, mark, or seal and be provided with notifications regarding;e.g. immediate recall of the medication, adverse events, newformulations, critical warnings of an immediate and emergency naturemade by prescription drug regulatory authorities and, or their agents. Auser; e.g. patient equipped with a portable or handheld device with theappropriate application software can use the portable and, or handhelddevice to store prescription drug information in a secure, non-editableformat on their device for personal use; e.g. MD's Office Visits,Records Management, Future Authentications, Emergency use by firstresponders etc. A user; e.g. patient equipped with the appropriateapplication on a portable or handheld device can scan the drug via anoptical scan, picture capture, spectroscopy or other means ofidentifying its physical properties and characteristics; e.g. spectralsignature, size, shape, color, texture, opacity, etc and use this datato identify the prescription drug's name, and manufacturer. A user; e.g.patient equipped with the appropriate application on a portable orhandheld device and having the certification system can receive updatedinformation (as a subscriber in a client/server relationship) on acontinuing or as needed ad hoc basis (as permitted) about notificationsmade by prescription drug regulatory authorities regarding; e.g.immediate recall of medications, adverse events, new formulations andcritical warnings of an immediate and emergency nature. A user; e.g.patient, subscriber to the certificate system equipped with theappropriate application on a portable or handheld device will benotified by audible and visible warnings of potential adverse affectsbetween drug combinations stored in their device's memory of previously“Certified Drugs.” A user; e.g. patient subscriber to the certificationsystem equipped with the appropriate application on a portable orhandheld device will receive notification of potential adverse affectsfrom drug combinations, as reported and published by medicalprofessionals in documents and databases reported to; e.g. DrugEnforcement Administration (DEA), Health and Human Services, (HHS) Foodand Drug Administration, (FDA) National Library of Medicines, (NLM) andtheir agents; e.g., Daily Med, Pillbox, RX Scan, PDR, etc.

1. A method for prescription drug authentication by receiving acertificate representing manufacturing origin and distributiontouchpoints of a prescription drug on a blockchain.

2. A method of claim 1, comprising retrieving active pharmaceuticalingredients (API) and inactive pharmaceutical ingredients (IPI) from theblockchain.

3. A method of claim 2, comprising authenticating the drug aftercomparing the API and IPI with data from Drug Enforcement Administration(DEA) Health and Human Services, (HHS) Food and Drug Administration,(FDA) National Library of Medicines, (NLM) etc. for the purpose ofidentifying the prescription drug'(s) and manufacture name indicated bythose ingredients.

4. A method of claim 1, comprising tracing the drug through a supplychain from manufacturer to retailer, dispenser with Pedigree Trail,Serialized Numerical Identification (SNI), Stock Keeping Units (SKU),Point of Sale System (POS) E-Pedigree Systems.

5. A method of claim 1, comprising generating a certificate, seal, markand computer scannable symbol such as 2 or 3 dimensional symbol; e.g. QRCode, Bar Code, Watermark, Stealth Dots, etc.

It will be readily appreciated that a device such as any of the devicesdescribed above may be adapted to perform the method with suitableprogramming or other configuration of the processor and/or otherprocessing circuitry. Also disclosed herein is a computer programproduct comprising computer executable code embodied in a non-transitorycomputer readable medium that, when executing on one or more computingdevices, performs the processing steps associated with the method.

It will be appreciated that any of the above systems, devices, methods,processes, and the like may be realized in hardware, software, or anycombination of these suitable for the control, data acquisition, anddata processing described herein. This includes realization in one ormore microprocessors, microcontrollers, embedded microcontrollers,programmable digital signal processors or other programmable devices,along with internal and/or external memory. This may also, or instead,include one or more application specific integrated circuits,programmable gate arrays, programmable array logic components, or anyother device or devices that may be configured to process electronicsignals. It will further be appreciated that a realization of theprocesses or devices described above may include computer-executablecode created using a structured programming language such as C, anobject oriented programming language such as C++, or any otherhigh-level or low-level programming language (including assemblylanguages, hardware description languages, and database programminglanguages and technologies) that may be stored, compiled or interpretedto run on one of the above devices, as well as heterogeneouscombinations of processors, processor architectures, or combinations ofdifferent hardware and software. At the same time, processing may bedistributed across devices such as a camera and/or computer and/orserver or other remote processing resource in a number of ways, or allof the functionality may be integrated into a dedicated, standalonedevice. All such permutations and combinations are intended to fallwithin the scope of the present disclosure.

One of ordinary skill in the art will readily appreciate that alternatebut functionally equivalent components, materials, designs, andequipment may be used, particularly including other viewing instrumentsand smart-viewing devices. Specific elements disclosed herein are not tobe interpreted as limiting, but rather as a basis for the claims and asa representative basis for teaching one of ordinary skill in the art toemploy the present invention. Accordingly, the above description isintended to cover such alternatives, modifications, and equivalents asmay be included within the spirit and scope of the invention as definedby the appended claims. Additionally, the terms “substantially” or“approximately” as used herein may be applied to modify any quantitativerepresentation that could permissibly vary without resulting in a changeto the basic function to which it is related.

What is claimed is:
 1. A method to analyze an eye with a mobile device,comprising: capturing an eye image using a mobile device camera coupledto a processor; capturing gyroscope or accelerometer readings as imagemetadata to aid in orientation normalization and image registration bythe processor; extracting features of the eye using the image correctedwith image metadata and clinical information from a population includingmedical history by the processor; and applying the extracted features toa deep learning neural network to detect hypertension or diabeticcondition from the eye.
 2. The method of claim 1, comprising providingan adapter to couple the mobile device to the eye.
 3. The method ofclaim 1, comprising positioning one or more light emitters or lightpipes to carry light from the mobile device in an adapter.
 4. The methodof claim 1, comprising capturing stereo images of the eye, wherein theadapter enables two or more cameras in the mobile device to image theeye.
 5. The method of claim 1, comprising applying a conditional GAN tolearn image patterns.
 6. The method of claim 1, comprising generatingfeatures and applying the features to detect similar eye conditions. 7.The method of claim 6, comprising retrieving treatment or diagnosisinformation from the detected similar eye conditions.
 8. The method ofclaim 1, comprising generating historical feature vectors from one ormore eye examinations of a patient, training the deep learning neuralnetwork with the historical feature vectors along with eye images, andapplying the trained deep learning neural network to diagnose the eye.9. The method of claim 1, comprising detecting laser damage on the eyeusing the deep learning network.
 10. The method of claim 1, comprisingproviding a similarity search for the eye image.
 11. The method of claim1, comprising displaying from a database eye images similar to the eyeimage captured by the mobile device camera.
 12. The method of claim 1,wherein the mobile device camera comprises an optical zoom lens.
 13. Themethod of claim 12, comprising controlling the optical zoom lens tofocus on a posterior of the eye; providing a neural network trained tofocus on structures on the posterior of the eye; and imaging theposterior of the eye.
 14. The method of claim 1, comprising providingbackground lighting for imaging cataract in the eye withretroillumination.
 15. The method of claim 1, comprising determiningintraocular pressure (IOP) with the deep learning neural network trainedon mapping lens curvature to IOP.
 16. The method of claim 15, comprisingcalibrating the IOP with a tonometer in an adapter.
 17. The method ofclaim 1, comprising imaging a posterior of the eye with solid statelighting units and light conditioning optics, further comprisingemitting light with narrow spectral bandwidth, broad spectral bandwidth,visible spectrum, or invisible spectrum.
 18. The method of claim 1,comprising placing light sources and sensors in an adapter positionedbetween the mobile device camera and the eye.
 19. The method of claim 1,wherein the eye condition comprises myopia, hyperopia, astigmatism, orpresbyopia.
 20. The method of claim 1, wherein the mobile devicecompensates for the eye condition during usage.